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

ensurePrimary doesn't work fine #6

Open
jordisantamaria opened this issue Dec 17, 2023 · 3 comments
Open

ensurePrimary doesn't work fine #6

jordisantamaria opened this issue Dec 17, 2023 · 3 comments
Labels
help wanted Extra attention is needed needs reproduction

Comments

@jordisantamaria
Copy link

I had a route which I put await ensurePrimary() on the loader because I was doing a update() request with prisma, and including await ensurePrimary() on the loader, was making all the links to that loader (both with useNavigate and remix Link) to reload the current page instead of go to that new page.

So I ended removing ensurePrimary(), and the links worked again.

@kentcdodds
Copy link
Collaborator

Can you make a reproduction?

@jordisantamaria
Copy link
Author

Well, it's not that easy to reproduce, because it doesn't happen to all users.

@kentcdodds
Copy link
Collaborator

I'm afraid I don't have bandwidth to investigate this. But I'd be happy to look at a pull request if you work out what's going wrong.

@kentcdodds kentcdodds added help wanted Extra attention is needed needs reproduction labels Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed needs reproduction
Projects
None yet
Development

No branches or pull requests

2 participants