Skip to content

Integration with Redux #100

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

Closed
sskyy opened this issue Dec 3, 2016 · 3 comments
Closed

Integration with Redux #100

sskyy opened this issue Dec 3, 2016 · 3 comments

Comments

@sskyy
Copy link

sskyy commented Dec 3, 2016

Hi, I like the idea of svelte and would like to try it in my recent work. And I also want to use Redux to manage all my app state so I can do better logging, debug etc. Would you please provide a example of integration with Redux or provide some guidance so I can do it myself. Thx.

@Swatinem
Copy link
Member

Swatinem commented Dec 3, 2016

Probably related to #9 where I expressed my wish to separate the state management from the template rendering, so people can hook up whatever library they want.

@lukechinworth
Copy link

Here is a project I setup with Redux, https://github.com/lukechinworth/codenames/tree/svelte.

basically just calls .set on the top level component with the current state after actions are dispatched from the component event handlers, which cascades down the hierarchy, achieving the one-way data flow famous to redux

@Rich-Harris
Copy link
Member

@lukechinworth thanks, that's a really helpful repo. That's definitely the easiest way to integrate with Redux. I've added it to the list of examples on the README, so I'll close this issue

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