-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
$effect deep call & $effect untrack (docs, feature) #14238
Comments
|
What @brunnerh said is spot on...I understand you are used to the old labeled statement but and this is a shift from how it worked but it's just a matter of getting used to think this way. Therefore closing, but thanks for reporting 😌 |
|
But I'll update the documentation to be more clear |
Describe the problem
High frustration with $effect and deep function calls.
Is this really, how it was designed?
Recommendation: Add new rune like $effect.deep() - if this is necessary in very rare cases.
Default $effect should not go beyound 1st level.
This deep behavior is not correct documented in docs:
Another high frustration level with $effect.
It took me 1h to find the problem.
I did not expect a "read" with nav.push() - on second view this was clear.
But I did not expect a "read" with untracked nav
How can this happen, if nav is already untracked?
Only untracking whole nav.push() runs well.
This behavior should also be documented
Recommendation:: Add untrackAll() - which will disable any tracking "reads" - so you don't need to write untrack all the time, if you call push for example.
or opposite to react: a non-tracking array (optional):
Describe the proposed solution
see above
Importance
would make my life easier