fly-apps/litefs-js

ensurePrimary doesn't work fine

Open

#6 opened on Dec 17, 2023

View on GitHub
 (3 comments) (0 reactions) (0 assignees)TypeScript (4 forks)github user discovery
help wantedneeds reproduction

Repository metrics

Stars
 (164 stars)
PR merge metrics
 (PR metrics pending)

Description

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.

Contributor guide