BLUE
Profile banner
D
Dominik 🔮
@tkdodo.eu
Software Engineer • Maintaining TanStack Query • blog at tkdodo.eu • Frontend Tech Lead @myadverity • ReactJs • TypeScript • Father of two 👧‍👦
587 followers97 following13 posts
Dtkdodo.eu

oh interesting, does that lift the restriction that hooks can't be called inside a callback in general or is this specific to useMemo I guess ?

1

Ddanabra.mov

yeah specific to useMemo — cause memoizing is the only thing you can do to parts of rendering code (and the compiler does something equivalent)

0
Profile banner
D
Dominik 🔮
@tkdodo.eu
Software Engineer • Maintaining TanStack Query • blog at tkdodo.eu • Frontend Tech Lead @myadverity • ReactJs • TypeScript • Father of two 👧‍👦
587 followers97 following13 posts