Skip to content

Comments

feat(finishing-mvp): add Suspense boundaries to auth pages#19

Merged
rshdhere merged 2 commits intomainfrom
feat/finishing-mvp
Jan 20, 2026
Merged

feat(finishing-mvp): add Suspense boundaries to auth pages#19
rshdhere merged 2 commits intomainfrom
feat/finishing-mvp

Conversation

@rshdhere
Copy link
Owner

Fixes #11

  • Wrap login, callback, and verify-email pages with Suspense and loading spinners
  • Refactor inner components to support streaming
  • Dispatch auth-change event on successful login to update navbar state
  • Redirect to /dashboard after authentication instead of home

- Wrap login, callback, and verify-email pages with Suspense and loading spinners
- Refactor inner components to support streaming
- Dispatch `auth-change` event on successful login to update navbar state
- Redirect to `/dashboard` after authentication instead of home
- Replace early return for unauthenticated state with `!token ? (...) : null` inside main JSX
- Update loading check to `!token ? null : statusQuery.isLoading ? (...)`
- Improve render flow by eliminating separate auth guard branch
- Fix `MDXComponents` type from `ComponentType<any>` to `ComponentType<unknown>`
@rshdhere rshdhere merged commit e4a62fc into main Jan 20, 2026
4 checks passed
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.

finishing the MVP

1 participant