Replies: 1 comment 2 replies
-
|
Yeah, I saw it, great work! We went back and forth on a similar direction before. I think the The main concern for us is the API / adapter behavior change. Today users mostly receive the virtualizer instance and call methods like Definitely open to discussing this more. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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