Virtual Scrolling #512
-
Does the Solid ecosystem have any libraries to support virtual scrolling (ala |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 3 replies
-
I don't think the ecosystem has such libraries yet, but there are some codesandboxes that are basically complete implementations (these were shared a while back on the solid discord by @rturnq ). When using these, keep in mind that imports of |
Beta Was this translation helpful? Give feedback.
-
More recently there's also: https://github.com/minht11/solid-virtual-container (note: I haven't tried it in a production application yet) |
Beta Was this translation helpful? Give feedback.
-
@tanstack/solid-virtual looks promising, but still in beta and currently not yet published to NPM. You could still use the UI-agnostic core and adapt the WIP Solid implementation |
Beta Was this translation helpful? Give feedback.
-
I've been thinking that a generic virtualization engine that could connect to multiple rendering engines would be cool. Not sure how practical that is. Something like https://github.com/wellyshen/react-cool-virtual just not bound to any particular framework. |
Beta Was this translation helpful? Give feedback.
-
I tried to make virtual scrolling usign raw javascript, it support dynamic sized item. Here is my code
|
Beta Was this translation helpful? Give feedback.
-
I made a virtualization library supporting dynamic sized items. Its Solid support is newborn but the shared logic is almost mature. |
Beta Was this translation helpful? Give feedback.
-
It's been mentioned here already but Tanstack's Solid Virtual has been out for a while and has worked great for us. https://tanstack.com/virtual |
Beta Was this translation helpful? Give feedback.
-
https://solidjs-use.github.io/solidjs-use/core/useVirtualList |
Beta Was this translation helpful? Give feedback.
I don't think the ecosystem has such libraries yet, but there are some codesandboxes that are basically complete implementations (these were shared a while back on the solid discord by @rturnq ).
https://codesandbox.io/embed/virtualized-list-9dw9q
https://codesandbox.io/embed/virtualized-sheet-8fokq
https://codesandbox.io/embed/virtualized-table-ks63n
When using these, keep in mind that imports of
createState
from "solid-js" need to be changed tocreateStore
from "solid-js/store" in order to work with the 1.0 release.