When I Am Proceeding To SignUp LocalStorage is not Working When See In Console There Is No Error And When I Watched Network It Is Showing Pending Backend Is Working Properly But Still Only That Sign Up Is Not Working My auth.js file code is :
const authReducer = (state= {data :null}, action) => {
switch (action.type) {
case 'AUTH':
localStorage.setItem('Profile', JSON.stringify({...action?.data}));
return { ...state, data: action?.data }
default:
return state;
}
}
export default authReducer