Example of typing multiple stores with different middlewares? #3098
Unanswered
vleong2332
asked this question in
Q&A
Replies: 1 comment
-
|
@vleong2332 would you mind creating a minimal repro on stackblitz? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to work with multiple stores, but running into some TypeScript difficulty. I had one store with slices and a state-mutating middleware that's typed per this example and this. I'm creating a new store using only
persistmiddleware, but that suddenly broke all the existing typings (e.g. TypeScript complains about conflictingStoreMutatorsignature).Any chance someone has made different stores using different middleware work with Typescript?
Beta Was this translation helpful? Give feedback.
All reactions