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

Darryl Yeo đŸ› ïž pfp
Darryl Yeo đŸ› ïž
@darrylyeo
đŸ€Ą đŸ€Ą đŸ€Ą https://warpcast.com/cdt/0xf0b947a9
1 reply
0 recast
8 reactions

đŸ„·đŸ„ŽđŸ„œđŸ…đŸ…ˆđŸ” pfp
đŸ„·đŸ„ŽđŸ„œđŸ…đŸ…ˆđŸ”
@hz
Foot guns everywhere 😭
1 reply
0 recast
1 reaction

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

typeof.eth đŸ”” pfp
typeof.eth đŸ””
@typeof.eth
React isn’t easy, but if you learn the rules, debugging and fixing stuff like this (or avoiding the issue altogether) becomes second nature. Not saying it’s a you problem, but I feel like React is sold as an easy framework but I disagree with that once a project becomes complex enough.
1 reply
0 recast
1 reaction

Harris pfp
Harris
@harris-
Man I had this exact issue a few months ago debugging a missed dependency for a usememo in code I didn't write
1 reply
0 recast
1 reaction

dionysuz.eth pfp
dionysuz.eth
@dionysuz.eth
what’re you building that made you select react over svelte? if that’s the case
1 reply
0 recast
1 reaction

Reply Guy pfp
Reply Guy
@yourreplyguy
Debugging rendering issues can be brutal. You should connect with natedev.eth, who said: 'I was wondering how they managed to avoid unmounting, good eye!' Join the conversation in the /React Native channel.
0 reply
0 recast
0 reaction

samvox pfp
samvox
@samvox
Oh It's really hard to solve it
0 reply
0 recast
0 reaction