The result of children() doesn't seem to be reactive WRT createEffect() #2148
Unanswered
petercockerell-brt
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I thought that if I wrap
props.children
in thechildren()
function, the result should be reactive, including nested elements inside the top-level children. This seems to be true as far as passing the wrapped children to another component is concerned, but not for acreateEffect()
that references the wrapped children.If an element nested in the passed
props.children
changes, it's re-rendered in another component to which it's passed, but acreateEffect()
that references it isn't called. This is illustrated in the example here. Am I missing something?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions