Use as Zustand middleware and run a saga independent of Redux for a Zustand
store. From within the saga, yield the provided setState
effect to update the
store or the normal Saga select
effect to retrieve the store.
;;; const INCREMENT = 'INCREMENT'; const useStore = ; { const counter = ; ; // or ;} { ;} { const increment = ; ; ...}