Currently in the process of:
export let store = null;
export default function getStore(incomingPreloadState?: any) {
store = configureStore({
reducer: {
content: ContentSlice
},
preloadedState: incomingPreloadState,
});
return store;
}
export type AppState = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch
It's evident that I'm encountering an error regarding the possible null value of the store