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.

貢獻者指南