You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! my application works perfectly on the web, android/ios simulators and Android devices, but on iphones it gives an error on start page (Sign in page). It seems that the problem is in the redux store as it works without it. Should i add any configs to vite.config or change store?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Select Topic Area
Question
Body
Hello! my application works perfectly on the web, android/ios simulators and Android devices, but on iphones it gives an error on start page (Sign in page). It seems that the problem is in the redux store as it works without it. Should i add any configs to vite.config or change store?
"dependencies": {
"@reduxjs/toolkit": "^2.0.1",
"react-redux": "^9.1.0",
"vite": "^5.0.8",
"react": "^18.2.0",
...
}
const reducers = { slice: ...};
const rootReducer = combineReducers(reducers);
const resettableRootReducer = (
state: ReturnType | undefined,
action: AnyAction,
) => {
if (action.type === "store/reset") {
return rootReducer(undefined, action);
}
return rootReducer(state, action);
};
const store = configureStore({
reducer: resettableRootReducer,
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware({
serializableCheck: false,
}).concat(thunkMiddleware),
});
export default store;
export type AppDispatch = typeof store.dispatch;
export type AppThunk<ReturnType = void> = ThunkAction<
ReturnType,
RootState,
unknown,
Action
Beta Was this translation helpful? Give feedback.
All reactions