Content pfp
Content
@
https://warpcast.com/~/channel/react
0 reply
0 recast
0 reaction

Darryl Yeo đŸ› ïž pfp
Darryl Yeo đŸ› ïž
@darrylyeo
Five more hours of my life debugging a React-related issue that I'II never get back đŸ«  You’re telling me if I want to conditionally render stuff that relies on state from a Provider, I have to break out the entire subtree into a `useMemo` expression to prevent the Provider from resetting its state whenever an unrelated component randomly decides to re-render?? Make it make sense đŸ€Ą
8 replies
3 recasts
18 reactions

HH pfp
HH
@hamud
Isn't that supposed to happen? If the parent component re-renders then all its children will also.
1 reply
0 recast
0 reaction

Darryl Yeo đŸ› ïž pfp
Darryl Yeo đŸ› ïž
@darrylyeo
Yes and no. I intended one thing, but because of stupid architectural decisions outside of my control, I am being forced to rewrite the same thing in a different way and wasting hours in the process. Theo explained this very well: https://warpcast.com/darrylyeo/0x72ae1b0a
0 reply
0 recast
1 reaction