Fixed styles and mode changing when refreshing on the main page #537
No reviewers
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked, waiting for further changes
bug
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
help wanted
invalid
low priority
needs input
needs review
project documentation
question
research
reviewed
script
security
SQL
style
testing
topLevel
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K!537
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "506-mode-and-style-bug"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
Tested locally.
Style and mode persist after refreshing the main page
Values remain applied when navigating between pages
Overall, looks good.
Merged!
b23albst referenced this pull request2026-05-06 08:07:04 +00:00
Pull request closed