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

Experiment with uber dispatcher #62

Closed
wants to merge 1 commit into from
Closed

Conversation

gaearon
Copy link
Contributor

@gaearon gaearon commented Jun 9, 2015

This is not really a PR, just something for everyone to play with.
I'm creating a custom dispatcher that accepts options:

const store = composeStores(stores);
// You can modify these options while the code is running:
const dispatcher = createDispatcher(store, { log: true, replay: false });
const redux = createRedux(dispatcher);

To have fun, you may start in normal mode, make a few actions, then set replay: true, fire an action, change a Store and see that particular action replayed. Then to “commit” the state, you can set replay back to false.

@gaearon gaearon mentioned this pull request Jun 9, 2015
7 tasks
@acdlite
Copy link
Collaborator

acdlite commented Jun 9, 2015

Great, I'll give this a look . The magical re-playing behavior on hot reload is super cool. Discovered that when I was working on #60. The more familiar I become FP the more it astounds me that it isn't a more dominant paradigm.

Also, just imagine working on this library without ES6. The mind reels :)

@gaearon
Copy link
Contributor Author

gaearon commented Jun 13, 2015

Closing, as it's not a real PR :-).
I might come up with something more real later..

@gaearon gaearon closed this Jun 13, 2015
@gaearon gaearon deleted the uber-dispatcher-experiment branch July 8, 2015 12:02
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

Successfully merging this pull request may close these issues.

2 participants