Martin Adamko
banner
martinadamko.bsky.social
Martin Adamko
@martinadamko.bsky.social
Crafting the UIs with React & React Native. #coding #specialtycoffee #kizomba #design #illustrations #fixedgear Košice/Prague/World
The idea, actually two ideas, that remove memoization and simplify code:

- compare dependencies ourselves and skip effect (inspired by the custom comparison function of React.memo)
- declare effect callback outside of component function body and inject it with dependencies
January 12, 2025 at 10:04 PM
Last month I came with fix for #ReactCompiler error: Ref values (the current property) may not be accessed during render.

usePureEffect hook is an alternative to #useEffect with pure callback and fine-grained reactivity  that respects rules of React.
January 12, 2025 at 10:04 PM