fly-apps/litefs-js

ensurePrimary doesn't work fine

Open

#6 ouverte le 17 déc. 2023

Voir sur GitHub
 (3 commentaires) (0 réactions) (0 assignés)TypeScript (4 forks)github user discovery
help wantedneeds reproduction

Métriques du dépôt

Stars
 (164 stars)
Métriques de merge PR
 (Métriques PR en attente)

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.

Guide contributeur