Commit 6fe00a7
committed
Stop the sign-in page from reloading itself on a signed-out query
The query cache subscriber hard-redirects to /signin whenever a query fails
with AUTH_REQUIRED or AUTH_EXPIRED. On staging the dev panel mounts on every
page and its project meta hooks fetched the projects list while signed out,
so the sign-in page itself received a 401 and reloaded in a loop. This only
surfaced after #785, which let the domain error code reach the browser; the
query had been failing silently before that.
The subscriber now skips the redirect when already on /signin, and
useProjectMeta no longer fetches for an empty projectId.
Claude-Session: https://claude.ai/code/session_01Y7psErb45XSCJXpeZ9sipC1 parent 71ff50a commit 6fe00a7
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| 524 | + | |
| 525 | + | |
524 | 526 | | |
525 | 527 | | |
526 | 528 | | |
| |||
0 commit comments