Unexpected behavior of reactivity in Indexed
and Keyed
#781
Labels
A-reactivity
Area: reactivity and state handling
C-bug
Category: bug, something isn't working
S-needs-mre
Needs a MRE (Minimal Reproducible Example)
Describe the bug
I was trying to implement a simple paginator, but I keep getting error
closure invoked recursively or after being dropped
and the currently selected element is not correctly updated. The problem seems to occur only with elements '1', '2' and '8', '9', which are not initially visible.Replacing
props.current_page.get()
withprops.current_page.get_untracked()
prevents the problem with the error, but also does not update the current element.Swapping
Indexed
withKeyed
+key=|page| *page,
is even worse.To Reproduce
closure invoked recursively or after being dropped
)Expected behavior
No errors. Reactivity should also be given within
Indexed
&Keyed
.Screenshots
Environment
The text was updated successfully, but these errors were encountered: