-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
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
Computed isPending method #129
Comments
This feature would be perfect for Svelte 5 interoperability. :) |
We may want to clarify terminology around "dirty" vs. "maybe dirty" -- some systems use both, and I'm not sure what expectations |
@shaylew A previous draft called this isPending. What name would you suggest? |
Hmm, the most instructive thing is probably something like |
Before I open a PR can we confirm this is the defined behavior you are referring to? OR by
means no use of watcher in which case the computed wont be live and thus need to "poll"? |
I don't understand the question; I think they're both talking about the same thing. |
More specifically this test |
Tangential note: this is proposing exposing the "is dirty" bit I was referencing in #30 (comment). |
@trueadm noted that it is often useful for frameworks to check whether a computed is dirty, and organize computeds in a tree, when deciding what to re-render. This subsumes certain watcher use cases. I believe this was present in an earlier draft, but we overzealously removed it when breaking out Watchers. This change is complementary to #77 and fits together well with it.
The text was updated successfully, but these errors were encountered: