Losing reactivity in props passed to `children` callback
I've got a component
Field
that passes a memo to props.children
. I'm running into an issue where the child component is not updating on changes to the memo
It works totally fine if I instead have several memos though:
a downside with the working example is having to pass in all props explicitly instead of just spreading em (ie. {...fieldState}
) 😬
how come the reactivity is lost? is there a way to preserve reactivity + still being able to spread the props?1 Reply
solved by passing the memo to
props.children
without actually invoking the memo