Closed
Description
Prior Issues
- https://stackoverflow.com/questions/73788057/react-native-project-crashing-with-redux-toolkit
- https://stackoverflow.com/questions/74283724/expo-crashes-with-redux-toolkit
- Also have a long discussion here https://forums.expo.dev/t/expo-go-with-react-redux-crashes-on-published-app-but-works-in-local/67949/8
What is the current behavior?
The app crashes immediately. Note this does not occur if the app is not minimized or if in non-production.
Steps to Reproduce
I am unable to make a MVCE to show this.
But this can be recreated in my app https://github.com/trajano/spring-cloud-demo (it's not a trivial app, but to make it crash I when I add the following to https://github.com/trajano/spring-cloud-demo/blob/rework/expo-app/authenticated-context/AuthenticatedProvider.tsx
import { configureStore } from "@reduxjs/toolkit";
export const store = configureStore({
reducer: {},
});
What is the expected behavior?
Not crash.
Environment Details
"@reduxjs/toolkit": "^1.9.0",
"react-redux": "^8.0.5",
"redux-persist": "^6.0.0",
"expo": "^47.0.6",
"react": "18.1.0",
"react-dom": "18.1.0",
"react-native": "0.70.5",
Metadata
Metadata
Assignees
Labels
No labels