Skip to content

Comments

feat(web): preserve mobile view state using React Activity boundary#108

Open
xyspg wants to merge 1 commit intomainfrom
feat/preserve-mobile-state
Open

feat(web): preserve mobile view state using React Activity boundary#108
xyspg wants to merge 1 commit intomainfrom
feat/preserve-mobile-state

Conversation

@xyspg
Copy link
Collaborator

@xyspg xyspg commented Dec 28, 2025

📌 What's Changed
In register page (mobile view), after toggling between selector and calendar the state will lost.

  • Replaced conditional rendering for mobile views with new React 19 <Activity>
  • Preserves internal component state (filters, course card expansion, scroll position) when toggling between "Courses" and "Schedule" on mobile.

Before:
https://github.com/user-attachments/assets/32accf13-01dd-40cc-b8d0-a477ebd26418

After:
https://github.com/user-attachments/assets/b5cb527b-da0d-474e-bc2e-e9a5580efe94

✅ Actions

  • [ ]

📝 Notes for Reviewer

This will have a conflict with #107 which I will resolve once that PR is merged.

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