Unexpected behavior when dealing with stores (createStore)
Hello everyone, so I have this line of code:
It works perfectly but when the user logs out (user sets to null), they get this error in the console:
TypeError: Cannot read properties of null (reading 'position')
3 Replies
This is the logout function
Try
If you are using the conditional operator in the component's return expression you are committing to one or the other JSX during setup time without any way to switch reactively later.
Noted, thanks
Yeah it worked :D