fly-apps/litefs-js

ensurePrimary doesn't work fine

Open

#6 geöffnet am 17. Dez. 2023

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (4 Forks)github user discovery
help wantedneeds reproduction

Repository-Metriken

Stars
 (164 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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