Repository navigation
docs: correct two comments that cite a non-existent bug - #888
Merged
Merged
Conversation
#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]>
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
pausedstate and that SDK requests were going out without anAuthorizationheader, 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.mjsdoes it:/jobs/applicationsrenders 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 failProfileStrengthSection— the session's own name is worth using as a last resort because it needs no request at allscf-core 1179/1179. No behaviour change.
🤖 Generated with Claude Code