Resolve "fix: clean up all middlwares used in the app created with `createListenerMiddleware`"

  • Created a single listener middleware instance and put it into a separate file as recommended by docs
  • Moved listeners to the files they belong to to separate
    • If a listener affects a state of a particular slice, it will go into relevant slice
    • If a listener affects a state of several slices, it will go into commonListeners
    • If a listener affects no state at all, at can go either to the slice, it's being triggered by or into commonListeners
  • Additionally fixed some TypeScript errors in the slices, which were caused by not explicitly exporting the slice shape type

Closes #1962

Edited by oleksii sukhodolskyi

Merge request reports

Loading
Loading