You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue proposes an additional callback: updated. This is fired once if one or more tracked properties are updated.
Wire service will leverage this. It will allow wire service to stop monkey patching the component instance with setters to intercept updates to properties used in its DSL ($-prefixed variables). It will reduce an additional microtask used to collect all property changes.
More details to come.
The text was updated successfully, but these errors were encountered:
We’ll move @wire to a real decorator in the future which makes the service usable in other frameworks. Property descriptor hooks remain the approach which will still require a microtask to queue for when all property updates are complete.
The @wire decorator implementation will need access to the element's lifecycle callbacks, which means that its implementation will need access to privileged hooks as it has through the service hooks today. It's the same technical obstacles related to #512.
Description
Engine services currently have these callbacks:
This issue proposes an additional callback:
updated
. This is fired once if one or more tracked properties are updated.Wire service will leverage this. It will allow wire service to stop monkey patching the component instance with setters to intercept updates to properties used in its DSL (
$
-prefixed variables). It will reduce an additional microtask used to collect all property changes.More details to come.
The text was updated successfully, but these errors were encountered: