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

Higher order store ideas #264

Closed
gaearon opened this issue Jul 14, 2015 · 3 comments
Closed

Higher order store ideas #264

gaearon opened this issue Jul 14, 2015 · 3 comments

Comments

@gaearon
Copy link
Contributor

gaearon commented Jul 14, 2015

Higher order stores are a new powerful extension mechanism for Redux. It's more powerful than middleware so you should only use it if you need something the middleware can't do:

  • transform the state
  • ignore some actions
  • introduce asynchrony
  • fire some actions “out of the blue”

There is some work in progress on higher-order store docs. This doc should introduce you to the idea.

I created this issue to discuss potential applications of higher order stores.
These are what I have in mind:

Anything else?

@gaearon
Copy link
Contributor Author

gaearon commented Jul 14, 2015

cc @elierotenberg in case he'd like to experiment with using HOS to implement Redux over the Wire

@nstadigs
Copy link

I'm playing around with something similar using scuttlebutt (https://www.npmjs.com/package/scuttlebutt) because of its ecosystem like integrations with localstorage and leveldb. I'm calling it "redux-gossip". I was using a custom thunk for this, which gave me some problems. A higher order store is definitely the way to go. Thanks for this!

@gaearon
Copy link
Contributor Author

gaearon commented Jul 31, 2015

I'm closing this as too generic.
Let's discuss “Redux over the Wire” and related ideas in #313.

@gaearon gaearon closed this as completed Jul 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants