litefs-js icon indicating copy to clipboard operation
litefs-js copied to clipboard

ensurePrimary doesn't work fine

Open jordisantamaria opened this issue 2 years ago • 3 comments

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.

jordisantamaria avatar Dec 17 '23 16:12 jordisantamaria

Can you make a reproduction?

kentcdodds avatar Dec 17 '23 23:12 kentcdodds

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

jordisantamaria avatar Dec 18 '23 11:12 jordisantamaria

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 avatar Dec 18 '23 15:12 kentcdodds