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

This library should have way more stars! πŸ₯‡ #14

Closed
jln-dk opened this issue Apr 28, 2021 · 6 comments
Closed

This library should have way more stars! πŸ₯‡ #14

jln-dk opened this issue Apr 28, 2021 · 6 comments

Comments

@jln-dk
Copy link

jln-dk commented Apr 28, 2021

Hey @betula , just wanted to say thank you for this awesome library! βœ‹
Switching from React Context + useReducer to this library reduced soooo much boilerplate code.
It's much more nice, clean and simple now, plus the bonus of using "useEffect" incapsulated within the state hook is just awesome.

I don't get why this library doesn't have more stars and more popularity. People using useContext+useReducer are really missing out πŸ˜ƒ

Thanks!

/ Jesper

@betula
Copy link
Owner

betula commented Apr 29, 2021

Hi Jesper!

Thank you heartily for the warmth of your words. I am very glad that the library finds its application and brings ease to development, abstraction, and code! πŸ₯°

Happy coding πŸ€—

@loia5tqd001
Copy link
Contributor

Have you encountered any difficulties from then @jln-dk ? I've tried and it works pretty well in simple cases. However when working with react-router, when the page is unmounted, the state seems to be lost as well.
For example:
Page A has aBooleanState = true by default. If I'm in page A, toggle aBooleanState to false, then go to page B. When come back to page A I expect aBooleanState to persist the false value. But it's true which is the default.

@loia5tqd001
Copy link
Contributor

Here is the codesandbox to reproduce the problem I stated above. @betula

@betula
Copy link
Owner

betula commented Nov 3, 2021

Hi @loia5tqd001,
Nice catch! Thanks!:+1:
I will take it.

And it will be great if you can move it into a new issue. The description of the problem and a link to reproduce on the codesandbox (special thanks for that!).

@jln-dk jln-dk closed this as completed Nov 3, 2021
@betula betula reopened this Nov 3, 2021
@jln-dk jln-dk closed this as completed Nov 15, 2021
@melloware
Copy link

I could not agree more. This library makes working with React a joy rather than a pain and it rids my need for Redux.

@ronster37
Copy link

I was about to install Redux until I found this library and it is a live saver. Really awesome job @betula. I don't know if I ever need to use Redux again haha

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

5 participants