Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/natewu/loader-issue
loader issue example
https://github.com/natewu/loader-issue
Last synced: 7 days ago
JSON representation
loader issue example
- Host: GitHub
- URL: https://github.com/natewu/loader-issue
- Owner: natewu
- Created: 2024-01-26T07:37:57.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-01-26T07:38:28.000Z (10 months ago)
- Last Synced: 2024-01-26T08:39:28.088Z (10 months ago)
- Language: TypeScript
- Size: 126 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# loader issue example
## Description
1. When you click log in it will log in but the navbar is still showing the log in button. If you refresh the page it will show the correct behavior.
2. In the app/root.tsx it uses a loader that checks if user is logged in, and in the nav.tsx component it calls upon the nearest loader to check if user is logged in.
3. Actually, when a user logs in the loader successfully runs and console is logged and the page is redirected. But the nav component does not update.
4. Same with logging out, the loader runs and console is logged but the nav component does not update. Refreshing the page will show the correct behavior.