Right now, the createVisitsAsyncThunk helper, does not really return an async thunk. Instead it returns an object wrapping the async thunk + the three extra actions to reset, fallback and large-load.
Ideally, it should return a regular async thunk that has been enhanced with the three extra actions, which also allows for a type-safe usage on the extra reducers.builder.addCase of any redux slice.
Right now, the
createVisitsAsyncThunkhelper, does not really return an async thunk. Instead it returns an object wrapping the async thunk + the three extra actions to reset, fallback and large-load.Ideally, it should return a regular async thunk that has been enhanced with the three extra actions, which also allows for a type-safe usage on the extra reducers.builder.addCase of any redux slice.