Content pfp
Content
@
0 reply
0 recast
0 reaction

Robotandkid  pfp
Robotandkid
@robotandkid
Good article about React hooks and memory leaks. Basically, your app probably has memory leaks. Doh! https://schiener.io/2024-03-03/react-closures
5 replies
2 recasts
31 reactions

typeof.eth 🔵 pfp
typeof.eth 🔵
@typeof.eth
Good thing to keep in mind for sure, but instantiating that `new BigObject()` on every render is the root cause of that specific issue. Either instantiate once outside the component, or `const bigData = useMemo(() => new BigObject(), [])` and the problem goes away.
1 reply
0 recast
0 reaction

The Crypto Papi pfp
The Crypto Papi
@thecryptopapi
Misusing useEffect aka having 5+ useEffects in a single component is a recipe for memory leaks
0 reply
0 recast
0 reaction