Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why Unstated? #90

Open
mbrahimi02 opened this issue Oct 29, 2020 · 3 comments
Open

Why Unstated? #90

mbrahimi02 opened this issue Oct 29, 2020 · 3 comments

Comments

@mbrahimi02
Copy link

I'm just failing to understand why use unstated. The implementation looking at the source doesn't seem to do anything to add to the existing context API, no memoized selectors, no atomic API. So why is unstated so popular and what does it add?

@AjaxSolutions
Copy link

AjaxSolutions commented May 18, 2021

I'm just failing to understand why use unstated. The implementation looking at the source doesn't seem to do anything to add to the existing context API, no memoized selectors, no atomic API. So why is unstated so popular and what does it add?

I agree. This library is just a wrapper around the React context api which doesn't add any new functionality.

I like these three state management libraries better: Zustand, Valtio and Jotai.

https://github.com/pmndrs

@jmayergit
Copy link

I like these three state management libraries better: Zustand, Valtio and Jotai.

https://github.com/pmndrs

I looked into one of these libraries, Zustand, and the setup for Next.js is HUGE

https://github.com/vercel/next.js/blob/master/examples/with-zustand/lib/store.js

@Sti2nd
Copy link

Sti2nd commented Aug 2, 2024

Agreed. Use React Context; it has almost the exact same API as unstated-next. I guess unstated-next only exists because unstated existed, and maybe they look somewhat alike 🤷🏿

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants