Various usage of Listener Middleware #2498
ryota-murakami
started this conversation in
Community Recipes
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to know other forks are how using a Listener Middleware.
In my case putting theme changing DOM API's task at Listener.
Because these code are completely outside of React components and should trigger on state(light/dark) change.
Screen.Recording.2022-07-08.at.0.41.28.mov
https://github.com/laststance/nsx/blob/main/src/redux/listener.ts
store.ts
Beta Was this translation helpful? Give feedback.
All reactions