Infer type of actions for `dispatch` using `reduxjs/toolkit`
I am using reduxjs/toolkit
to set up my redux store and I would like to enforce that whenever dispatch
is called, it only accepts actions that I have declared in my slices:
How to access “selectors” from a slice in redux toolkit
So, I’m still new to redux toolkit and I’m likely doing some of this wrong. In any case, I’m curious how to extract my “selectors” from my store/slice in redux.