You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
From #1119 (comment):
@piecyk, I have my own React binding for TanStack Virtual: https://github.com/zeorin/react-hook-tanstack-virtual, which doesn't rely on calling functions during render, or break any rules of React.
It only raises one lint issue, and it's the same issue as in React's own
useSyncExternalStoreWithSelector(used internally by e.g. Zustand): https://github.com/react/react/blob/e730b5e65a154bd8fdba26c89288d7d9846b98ab/packages/use-sync-external-store/src/useSyncExternalStoreWithSelector.js#L54.I've been using this approach privately for months and it's been working flawlessly for me.
I'd be happy to collaborate or just chat about the approach.
Beta Was this translation helpful? Give feedback.
All reactions