Allusion
react-window
Allusion | react-window | |
---|---|---|
5 | 38 | |
631 | 15,291 | |
2.5% | - | |
3.9 | 2.6 | |
11 days ago | about 1 month ago | |
TypeScript | JavaScript | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Allusion
- Allusion is a tool built for artists, aimed to help you organize your Visual Library
-
Digital asset management for design studio
Allusion? https://github.com/allusion-app/Allusion
-
How to manage state on the Rust side when using WASM?
You can only block a web worker thread; blocking in the main thread is not allowed by browser vendors. If you want to synchronize two web workers, you can use the std primitives like Mutex and compile with atomics. If you want to synchronize the main thread and a web worker, you need to build this yourself. I have implemented this in one of my code bases (https://github.com/allusion-app/Allusion/blob/master/wasm/masonry/src/sync.rs) but the code is GPL licensed. Note this particular code only works in browsers that support Atomics.waitAsync. An alternative is to wrap a worker.onmessage callback in a Promise and await that. Also statics are used because I don't want the overhead of calling receive from JavaScript back to Rust in the web worker, not that they are required.
-
Anybody doing WASM state management in Rust?
One idea that could work out is to move state management to a web worker and state changes are just messages between the main thread and web worker (JS example with Redux + React + Comlink. The Redux and Comlink would be reimplemented in Rust (requires atomics, WASM intrinsics and however Redux works). However, using atomics is not so nice. Atomic.waitAsync has so far been only stabilized in Chrome last time I used it and the Rust std library has no equivalent, so you still have to call that from Rust. I've implemented something similar to a channel/spinlock but with statics (github source).
-
Creating a Sleek Masonry Gallery with React and WebAssembly
The final implementation: Masonry algorithm in Rust, Webworker, Masonry renderer which makes use of the Virtualized renderer
react-window
-
Virtual Scrolling in React: Implementation from scratch and using react-window
As we have seen in the previous section we can implement virtual scrolling from scratch. In this section, we'll discuss a third-party tool called react-window that allows us to implement virtual scrolling in a much easier way.
-
React Virtualisation from scratch
If you have been using React for awhile, you may have heard of the infamous virtualisation library react-window or it's predecessor react-virtualized
-
Top 7 Libraries for Blazingly Fast ReactJS Applications
React Window is used to render long lists. Imagine you have a list of 1,000 items. Only ten are visible simultaneously, but your code tries to render all 1,000 items simultaneously.
-
Is there a perfect virtual list solution in react?
You can try react-window by Brian Vaughn
-
Help creating an infinite scroll and skew scroll animation at the same time
I'm trying to use react-window and react-nice-scroll together but unfortunately it didn't work at all. As soon as I wrap my component with from react-nice-scroll everything disappears.
-
Memoizing table rows in a table that can be filtered
This is what you should look into. (Virtualization)
-
What's you opinion on the new Reddit design ditching React in favor of Lit for mostly performance reasons?
Take a look at react-window. But just my perspective; if you haven't needed to look into what virtualization is, it's probably because you haven't had a need for it yet. The one implication (which you'll see in another comment form me in this thread) is that it removes CTRL+F search functionality for items outside of the "window".
-
5 Tips for Optimizing ReactJS Performance and Building Lightning-Fast Applications
Virtualization can be achieved using third-party libraries like react-window or react-virtualized. These libraries provide a way to render only the visible data and load more data as needed, resulting in faster application performance.
-
Pagination in Next 13
If the API data is not paginated (i.e. you’re getting all your data in one go), then you may not need pagination. If rendering performance is an issue, a virtualized list may be more appropriate. If the response is too big and is slow to fetch it’s another issue entirely, since if the API doesn’t support offsets / pages you would need to invent a criteria to paginate your data on, or fetch it on the server using React Server Components which gives you implement a cache layer and potentially allows to only send a chunk of that data to the client, but you see how that can get complex fast.
-
Introducing Suspense: APIs to simplify data loading and caching, for use with React Suspense.
Oh, right. I totally forgot to mention that– but the idea of "less rendering" in this case seems less like a Suspense concern and more like a windowing concern. I've written a few libraries for that stuff (react-window and react-virtualized) although there are others that may fit your needs better. Their main focus is limiting what you're rendering to more or less only what's on the screen at any given point. Combine that with memoized filtering and I would imagine you're set.
What are some alternatives?
yewdux - Ergonomic state management for Yew applications
react-virtualized - React components for efficiently rendering large lists and tabular data
bounce - The uncomplicated Yew State management library
react-lazyload - Lazy load your component, image or anything matters the performance.
comlink - Comlink makes WebWorkers enjoyable.
vue-virtual-scroll-list - ⚡️A vue component support big amount data list with high render performance and efficient.
s3ql - a full featured file system for online data storage
react-list - :scroll: A versatile infinite scroll React component.
awesome-selfhosted - A list of Free Software network services and web applications which can be hosted on your own servers
react-infinite
wasm-pack - 📦✨ your favorite rust -> wasm workflow tool!
react-select - The Select Component for React.js