Skip to content
New issue

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

bug: slight improvement for home redirection #1742

Merged
merged 1 commit into from
Sep 18, 2024
Merged

bug: slight improvement for home redirection #1742

merged 1 commit into from
Sep 18, 2024

Conversation

ansmonjol
Copy link
Collaborator

Context

I felt into a random situation multiple time.
After log in, I fall in the home / route, and never been redirected to the correct destination (depending on LS or permissions).
Ending in only having the side nav displayed, but a blank screen elsewhere.
I can never reproducing afterward, cleaning LS or using private nav did not help.

I was considering that we had some kind of race condition at app boot (I mean, we probably do), where the expected data was not there, even tho the loading of the data was done.

We have an issue with the app boot but landing a big refactor is not something I wanna start right now 😕

Description

To try making it more efficient, I make sure the membership is present and the hook is called if so, before triggering the redirection.

This does not solve the deeper issue but might patch this situation.

Let me know if you see a better approach and if you had the same situation in the past.

@ansmonjol ansmonjol added the 🐞 bug Something isn't working label Sep 18, 2024
@ansmonjol ansmonjol self-assigned this Sep 18, 2024
@ansmonjol ansmonjol merged commit 7695acf into main Sep 18, 2024
6 checks passed
@ansmonjol ansmonjol deleted the home-redirect branch September 18, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants