Closed DJWalker42 closed 6 months ago
I am not seeing this - can you make it happen reliably?
Yep. The first image is immediately after logging in, the second is after clicking the 'light/dark' mode toggle:
I should add I'm using Chrome but I also see this issue in Safari.
Firefox is the same as Chrome, in that it shows "unknown" every time - I think that the App2.tsx code might benefit from being broken up into several components - it might then be clearer what is happening - it is nice style to have the return of the component at the end of the file which is not the case here - there also could be some subtle closure effects going on with the functions defined in other functions...
it also seems that on firefox and chrome - logging out does not completely log the person out like it does on safari
The only button that then gets the AppShell to re-render with the correct username is the light-dark mode toggle switch. Having "unknown" as the user causes problems when trying to create a new proposal as the Person is then not known.