Git Product home page Git Product logo

Comments (5)

dai-shi avatar dai-shi commented on May 30, 2024 1

Hey, thanks!

I haven't thought much about persistence. It may take some time for me to think about how persistence support should be for createGlobalState.
As for createStore, technically you can use Redux-style middleware, and it's probably better to do so instead of having side effects in a reducer. I'll make an example later, but meanwhile you can try that too.

Maybe one could do a small github wiki entry and link it in the README.

That sounds like a nice idea, because I want to keep the library itself small, but there would be many use cases and tips. Do you mean that I simply create a wiki placeholder in this repo?

from react-hooks-global-state.

dai-shi avatar dai-shi commented on May 30, 2024 1

@cupcakearmy
The wiki is set up. Free free to edit it.
I will add the link once we have several contents.

from react-hooks-global-state.

cupcakearmy avatar cupcakearmy commented on May 30, 2024 1

Maybe you can link it in the main README, so people can find it easily :)

https://github.com/dai-shi/react-hooks-global-state/wiki/Ideas

from react-hooks-global-state.

cupcakearmy avatar cupcakearmy commented on May 30, 2024

That sounds like a nice idea, because I want to keep the library itself small, but there would be many use cases and tips.

Yes, keeping it small is a good idea.

Do you mean that I simply create a wiki placeholder in this repo?

Simply the repository wiki and add the link to the README.md 🙂

from react-hooks-global-state.

dai-shi avatar dai-shi commented on May 30, 2024

@cupcakearmy
I made an example. Hope it helps. Note that this is just one implementation, and there could be many.
https://github.com/dai-shi/react-hooks-global-state/tree/master/examples/13_persistence

from react-hooks-global-state.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.