Repository navigation
Replies: 1 comment 3 replies
|
Hi! stan-js doesn’t ship with anything like Redux Toolkit’s createListenerMiddleware, but you have a couple of easy options:
|
3 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.
Uh oh!
There was an error while loading. Please reload this page.
Hey, i have a shared api instance which is located under shared/api which is patched of tokens handling and refresh functionality. However, during to feature sliced design rules, i cannot import entities into shared code. Here is an example:
I can deal with getting tokens, but i'm not really sure how to abstart logic with calling sessionService and actions.
In redux toolkit u can do something like this:
So I can trigger updates in shared api and use listen inside of the store, do you have a workaround for stan-js?
All reactions