Fixed styles and mode changing when refreshing on the main page #537

Closed
b23albst wants to merge 0 commits from 506-mode-and-style-bug into team_2_week_3
Collaborator

The problem happened because style and mode was only set by the useStyle hook, used in the StyleSelect component, that is only located on the settings page.

It is solved by having style and mode stored as a context. Since this is placed at top level in the application, the initial values for mode and style are always set and stored when moving between pages.

The problem happened because style and mode was only set by the useStyle hook, used in the StyleSelect component, that is only located on the settings page. It is solved by having style and mode stored as a context. Since this is placed at top level in the application, the initial values for mode and style are always set and stored when moving between pages.
b23albst changed target branch from main to team_2_week_3 2026-04-24 08:02:58 +00:00
Collaborator

Tested locally.
Style and mode persist after refreshing the main page
Values remain applied when navigating between pages

Overall, looks good.

Tested locally. Style and mode persist after refreshing the main page Values remain applied when navigating between pages Overall, looks good.
Collaborator

Merged!

Merged!
a24vinla closed this pull request 2026-04-24 10:50:27 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K!537
No description provided.