Svelte: Integration with Redux

Created on 3 Dec 2016  路  3Comments  路  Source: sveltejs/svelte

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.

Most helpful comment

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

All 3 comments

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.

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

@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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thoughtspile picture thoughtspile  路  3Comments

davidaq picture davidaq  路  3Comments

robnagler picture robnagler  路  3Comments

bestguy picture bestguy  路  3Comments

AntoninBeaufort picture AntoninBeaufort  路  3Comments