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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I thought that if I wrap
props.childrenin 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.childrenchanges, 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