saga-query
Data synchronization using a middleware system for front-end apps (by redux-saga)
use-context-selector
React useContextSelector hook in userland (by dai-shi)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
saga-query | use-context-selector | |
---|---|---|
5 | 27 | |
58 | 2,473 | |
- | - | |
6.0 | 6.5 | |
6 months ago | 8 days ago | |
TypeScript | TypeScript | |
- | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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.
saga-query
Posts with mentions or reviews of saga-query.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-02-28.
-
Redux Toolkit v1.8: new "listener" side effects middleware
I've heard these arguments before and I actually agree with you on a lot of them. That's why I've been trying to figure out how to make data fetching simpler in redux-saga. I've been using saga-query on personal projects for awhile now and I think it has promise. It's my response to react-query and rtk-query but from the perspective of someone who loves using redux-saga.
-
Honestly, what is the best, pain-free state management in React right now?
Redux + saga-query
-
robodux: a powerful middleware and caching library for redux side-effects
I don't have all of the examples written yet in the documentation, but this idea is an async/await version of another library I experimented with saga-query which does have better examples of everything I listed above and works in virtually the same way (it just leverages redux-saga instead).
- Show HN: Saga-query – data synchronization using koa-like middleware
- saga-query: powerful data synchronization library built on redux-saga
use-context-selector
Posts with mentions or reviews of use-context-selector.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-06.
-
Having too many contexts - is it a problem?
Use jotai, or as someone else mentioned, zustand. React Context out of the box requires a very deliberate mental model due to a lack of tooling around selecting slices of state. This is why packages like react-context-selector exist: https://github.com/dai-shi/use-context-selector
-
Truly the best time to be a cs student
Unless I've missed it, context doesn't have selector IIRC. You'd have to use a third party solution useContextSelector
-
use-next-context: Performance-optimized React Context API.
How does this differ from https://github.com/dai-shi/use-context-selector?
-
Tips for managing and organizing complex state with React context
you can always split out context state or use a library to help with rerender issues like https://github.com/dai-shi/use-context-selector, or just switch to jotai or something else if you want something more ergonomic or better design patterns.
-
ReactJs - Useless re-renders when a context changes - HOW TO SOLVE IT ?
If you don't want to swap out useContext, you could always use useContextSelector, which helps you limit what props in the context should rerender the component.
-
React I Love You, But You're Bringing Me Down
I wouldn't call this easy
-
is Redux the first state management library you'll advise beginners to learn these days?
It wouldn't be clear to anyone learning Context API either. At least, not using official docs. Because Context API is not supposed for state management, and if you for some unknown reasons try to roll your own state management on top of it, you have to use tricky libraries to work around the issues resulting from such abuse.
-
What are some React Tricks/Tips for React Devs?
Any time anything in the context changes, any component that is consuming it will re-render. If you use it for frequently changed values, this library is needed to reduce unnecessary re-renders.
-
Surprising Performance Lessons from React Microfrontends in Production
Use of this implementation of useContextSelector
-
Inflist, an experiment using PureScript and React
Another technology I use regularly is Redux. But this time I wanted to manage the global state in a simpler and clearer way just using React hooks. I decided to go with a simple useReducer combined with theuseContextSelector hook which will avoid the whole application’s re-render caused by the native useContext hook.
What are some alternatives?
When comparing saga-query and use-context-selector you can also consider the following projects:
mobx-react
zustand - 🐻 Bear necessities for state management in React
reselect - Selector library for Redux
typed-redux-saga - An attempt to bring better TypeScript typing to redux-saga.
Next.js - The React Framework
robodux - caching in redux made simple
react-tracked - State usage tracking with Proxies. Optimize re-renders for useState/useReducer, React Redux, Zustand and others.
wrmhole
formik - Build forms in React, without the tears 😭 [Moved to: https://github.com/jaredpalmer/formik]
why-did-you-render - why-did-you-render by Welldone Software monkey patches React to notify you about potentially avoidable re-renders. (Works with React Native as well.)
rfcs - RFCs for changes to React
saga-query vs mobx-react
use-context-selector vs zustand
saga-query vs zustand
use-context-selector vs reselect
saga-query vs typed-redux-saga
use-context-selector vs Next.js
saga-query vs robodux
use-context-selector vs react-tracked
saga-query vs wrmhole
use-context-selector vs formik
use-context-selector vs why-did-you-render
use-context-selector vs rfcs