Skip to content

Drop the extra timetable subscription - #51

Merged
injoon5 merged 1 commit into
mainfrom
cursor/timetable-one-week-query-8a28
Aug 21, 2026
Merged

injoon5 merged 1 commit into
mainfrom
cursor/timetable-one-week-query-8a28

Conversation

@injoon5

@injoon5 injoon5 commented Aug 21, 2026

Copy link
Copy Markdown
Owner

#50 merged the two-subscription version before the follow-up landed.

This is the version we actually want: one getByWeek query, no keepPreviousData. On 전체, selectedWeek is still 0, so keeping the previous result painted this week for a frame on 다음 주. Drop that flag and the gap is the SSR week (already loaded for both weeks).

Test plan

  • 전체 → 다음 주 shows next week immediately, never this week
  • 이번 주 ↔ 다음 주 still switches
  • Empty standing timetable / snapshot controls unchanged
Open in Web Open in Cursor 

keepPreviousData was the flash, not the missing second query. One
getByWeek is enough: when args change, fall back to the SSR week until
the live row arrives.

Co-authored-by: Injoon Oh <injoon5@icloud.com>
@vercel

vercel Bot commented Aug 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
class-info Error Error Aug 21, 2026 8:27am

@injoon5
injoon5 marked this pull request as ready for review August 21, 2026 08:28
@injoon5
injoon5 merged commit 373c539 into main Aug 21, 2026
2 of 3 checks passed

This branch had an error being deployed

1 failed deployment
Preview — cda012a1 Deployed Aug 21, 2026 by vercel[bot]
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.

2 participants