We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
watched
Consider the following code:
let watcher const a = new Signal.State(0, { [Signal.subtle.watched]: () => { console.log(Signal.subtle.introspectSinks(a)) console.log(Signal.subtle.introspectSources(watcher)) }, }) watcher = new Signal.subtle.Watcher(() => { console.log("notified") }); watcher.watch(a);
Inside the watched callback, a is reported as having no sinks, but watcher does have a as a source – a visibly inconsistent state.
a
watcher
The text was updated successfully, but these errors were encountered:
This could be solved either way, by updating both before the callback or both after. I have no opinion on the options.
Sorry, something went wrong.
No branches or pull requests
Consider the following code:
Inside the
watched
callback,a
is reported as having no sinks, butwatcher
does havea
as a source – a visibly inconsistent state.The text was updated successfully, but these errors were encountered: