Skip to content

Commit

Permalink
fix: extra getDir for parameters to explicitly express interest in va…
Browse files Browse the repository at this point in the history
…lue changes
  • Loading branch information
mint-dewit committed Sep 11, 2024
1 parent 8abda16 commit c6f684c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Ember/Client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,12 @@ export class EmberClient extends EventEmitter<EmberClientEvents> {
if (tree?.number !== undefined) numberedPath.push(tree.number)
}

if (tree?.contents.type === ElementType.Parameter) {
// do an additional getDirectory because Providers do not _have_ to send updates without that (should vs shall)
const req = await this.getDirectory(tree)
await req.response
}

if (cb && numberedPath) {
this._subscriptions.push({
path: numberedPath.join('.'),
Expand Down

0 comments on commit c6f684c

Please sign in to comment.