-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Router view #25
refactor: Router view #25
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work fine in testing for the most part. mounted()
no only gets called when the view is actually opened, i.e. what we wanted to achieve with this PR ^^
One issue I noticed is that when enabling/disabling dev mode, the highlighted tab at the top gets updated incorrectly.
In particular, enabling dev mode highlights the DEV tab even though it isn't the open one:
and disabling dev mode switches back to PLAY view but doesn't highlight it:
Rewrites application views system so it uses a router; this allows to lazy-load components (= not mounting them only corresponding menu item is clicked).