Skip to content

Typescript - only one dispatch & combined stores. #637

Closed Answered by dai-shi
Snouzy asked this question in Q&A
Discussion options

You must be logged in to vote

There is redux middleware, if you prefer.
I'm not suggesting it, though. Middleware is hard for typing.
If you are comfortable with the way you are doing, it's good.

Only one concern is the extra object creation. You want to do return set(result, false, action.type);, right?

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@dai-shi
Comment options

@Snouzy
Comment options

Comment options

You must be logged in to vote
1 reply
@Snouzy
Comment options

Answer selected by Snouzy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants