We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
}, 12 | userInfo: Cookies.get('userInfo')
13 | ? JSON.parse(Cookies.get('userInfo')) | ^ 14 | : null,
Giving error in the store here. I don't know whats the problem is
Here is the screenshot above
The text was updated successfully, but these errors were encountered:
}, 12 | userInfo: Cookies.get('userInfo') 13 | ? JSON.parse(Cookies.get('userInfo')) | ^ 14 | : null, Giving error in the store here. I don't know whats the problem is Here is the screenshot above
just in Store.js add JSON.stringify
JSON.stringify
like::
userInfo: Cookies.get('userInfo') ? JSON.parse(JSON.stringify(Cookies.get('userInfo'))) : null,
Sorry, something went wrong.
Cookies.set('userInfo', JSON.stringify(data)); In your login.js fixes the issue. You have to convert the object to string so it can be stored properly
Cookies.set('userInfo', JSON.stringify(data));
No branches or pull requests
},
12 | userInfo: Cookies.get('userInfo')
Giving error in the store here. I don't know whats the problem is

Here is the screenshot above
The text was updated successfully, but these errors were encountered: