From c6f684cc3d4870c971de3446360464fae055b284 Mon Sep 17 00:00:00 2001 From: Mint de Wit Date: Wed, 11 Sep 2024 15:11:59 +0200 Subject: [PATCH] fix: extra getDir for parameters to explicitly express interest in value changes --- src/Ember/Client/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Ember/Client/index.ts b/src/Ember/Client/index.ts index 31abd27..34536d2 100644 --- a/src/Ember/Client/index.ts +++ b/src/Ember/Client/index.ts @@ -401,6 +401,12 @@ export class EmberClient extends EventEmitter { 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('.'),