fly-apps/litefs-js

ensurePrimary doesn't work fine

Open

#6 aperta il 17 dic 2023

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)TypeScript (4 fork)github user discovery
help wantedneeds reproduction

Metriche repository

Star
 (164 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor