bernabe9 / redux-react-session

:key: Simple Session API storage for Redux and React
https://bernabe9.github.io/redux-react-session/
147 stars 41 forks source link

getting GET_SESSION_ERROR after logout or refreshing the page #26

Closed prince1456 closed 6 years ago

prince1456 commented 6 years ago

When I am refreshing my application it's giving me this error is happening and because there is not any data in my local storage it's giving me this error. also, it's happening after deleting session and deleting a user from local storage too.

action @@redux-react-session/GET_SESSION_ERROR @ 23:41:18.365 redux-logger.js:1 prev state {requestList: {…}, DashboardRequestList: {…}, ListShow: {…}, userReducer: {…}, session: {…}, …} redux-logger.js:1 action {type: "@@redux-react-session/GET_SESSION_ERROR"} redux-logger.js:1 next state {requestList: {…}, DashboardRequestList: {…}

bernabe9 commented 6 years ago

Hi @prince1456, this is the expected behaviour. GET_SESSION_ERROR means that the library tried to get the session without success. Maybe the name is confusing because it seems that something wrong happen but when there is no session it should show the GET_SESSION_ERROR or GET_USER_ERROR actions.