Hi,
I’m encountering an issue that neither Google, ChatGPT and the AI assistant here could assist, and no mentioning on the forum.
The site is test.riskgpt.io. I have implemented netlify identity which largely works, however after first sign up and login, if I log out, and back in, I get this error and the app is frozen.
[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: ‘Reaction[i.render()]’ TypeError: Cannot read properties of undefined (reading ‘full_name’)
at d.value (logout.js:20:33)
at L (preact.mjs:522:24)
at C (preact.mjs:471:4)
at preact.mjs:637:3
at E (preact.mjs:611:1)
at preact.mjs:346:12
at E (preact.mjs:293:1)
at preact.mjs:346:12
at E (preact.mjs:293:1)
at preact.mjs:346:12
In no place in my application am I looking for the full_name attrib on the user, it is a really basic implementation for now to see how/if it works, so essentially I’m only checking if the user is truthy and pass them on to the app.
Another strange thing that happens is that I need to re-authorise Netlify to use my git credentials after I logout.
It’s the same behaviour on both Arc and Chrome.
I’m using redux-persist.
Any simple answer to this issue? before I go deep into investigations, what is nobx in the identity context and why is it looking for the full_name value?
PS- email sign up is not working yet, only github and google.
Thanks for any help
The better the post - the faster the answer.