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
As a note to myself: the problem occurs specifically when the first memo is triggered twice before the second memo is ever read again, so that by the time .update_if_necessary() runs on the second memo during its read, its parent has already marked itself clean again. The second memo should probably have been marked dirty when the first one changed.
The issue here turns out to be super simple and a regression in my rewrite of the reactive graph for 0.7: the Memo::mark_check function should only mark a Memo as being in the Check state if it isn't already Dirty, which is a stronger claim. The one-line change in the PR (plus regression test) close this issue.
Describe the bug
A derived Memo doesn't recompute correctly. Rendering it makes it trigger correctly.
Leptos Dependencies
To Reproduce
true
, but should befalse
false
in<Show>
totrue
, to rendersecond_memo
false
Expected behavior
Derived memos should always have the latest state available when their inputs change.
The text was updated successfully, but these errors were encountered: