Skip to content

docs: correct two comments that cite a non-existent bug - #888

Merged
thinkclay merged 1 commit into
mainfrom
fix/correct-883-comments
Sep 23, 2026
Merged

thinkclay merged 1 commit into
mainfrom
fix/correct-883-comments

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Two code comments merged in #884 and #885 cite #883, an issue I filed and have now closed as my own error.

#883 claimed queries were getting stuck in React Query's paused state and that SDK requests were going out without an Authorization header, leaving screens rendering empty states over live data. Both observations were real; the cause was not the app. I had been pasting freshly minted sessions into an already-booted page for several hours, and each mint invalidates the previous refresh token — so supabase-js kept trying to refresh with a rotated token, failing, and dropping the session, while a cached profile query went on showing the user's email in the drawer. From there the SDK provider correctly built an anonymous client and every screen correctly rendered its signed-out path.

Re-tested in a clean browser context with the session injected before page boot, the way scripts/audit/sweep-routes.mjs does it: /jobs/applications renders all seven applications grouped by stage, /employers/<id> renders the employer and four open roles, and requests carry the token.

Both comments stand on their own without the claim, so this only removes the wrong half:

  • ApplicationsList — a failed request should not render as an empty list, whatever made it fail
  • ProfileStrengthSection — the session's own name is worth using as a last resort because it needs no request at all

scf-core 1179/1179. No behaviour change.

🤖 Generated with Claude Code

#883 said queries were getting stuck and screens were rendering empty
states with live data behind them. That was wrong: I had been pasting
freshly minted sessions into an already-booted page for hours, and each
mint invalidates the previous refresh token, so supabase-js kept dropping
the session while a cached profile query still showed the user. Re-tested
with the session injected before page boot — the way sweep-routes.mjs does
it — every screen loads. The issue is closed as my own error.

Both comments stand without the claim: a failed request should not render
as an empty list, and the session's own name is worth using as a last
resort because it needs no request at all.

Co-Authored-By: Claude Opus 5 <[email protected]>
@thinkclay
thinkclay merged commit 7e66bfe into main Sep 23, 2026
9 checks passed
@thinkclay
thinkclay deleted the fix/correct-883-comments branch September 23, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant