Package I have install 1."react-native-flipper": "^0.181.0", 2."redux-flipper": "^2.0.2",
import {configureStore} from '@reduxjs/toolkit';
import {useDispatch} from 'react-redux';
import thunkMiddleware from 'redux-thunk';
import userReducer from '../redux/userSlice';
const createDebugger = require('redux-flipper').default;
export const store = configureStore({
reducer: {
user: userReducer,
},
middleware: getDefaultMiddleware =>
__DEV__
? getDefaultMiddleware({
serializableCheck: true,
})
.concat(createDebugger())
.concat(thunkMiddleware)
: getDefaultMiddleware({
serializableCheck: false,
})
.concat(createDebugger())
.concat(thunkMiddleware),
});
export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;
export const useAppDispatch: () => AppDispatch = useDispatch;
I have no idea why this is not running. if anyone has idea then please let me know