fly-apps/litefs-js

ensurePrimary doesn't work fine

Open

#6 创建于 2023年12月17日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)TypeScript (4 fork)github user discovery
help wantedneeds reproduction

仓库指标

Star
 (164 star)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南