Closed ziongh closed 5 years ago
I just spent several hours trying to figure out the same problem. Looks like the interface to createStore
was changed with this commit, but the documentation was never updated.
The example code was updated with this commit. That's what I used to figure out how to get it working...
I'm Trying to define a Saga to control Authentication Login Flow:
In the Store.Js I needed to Run this Watcher:
One option that I've tried:
but with this I get the following Error:
Error: Before running a Saga, you must mount the Saga middleware on the Store using applyMiddleware
How do I run a Watcher? Or is there another better solution?