Skip to content
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

Merged
merged 16 commits into from
Oct 20, 2022

Conversation

Alystrasz
Copy link
Contributor

Rewrites application views system so it uses a router; this allows to lazy-load components (= not mounting them only corresponding menu item is clicked).

Copy link
Member

@GeckoEidechse GeckoEidechse left a 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:
screenshot

and disabling dev mode switches back to PLAY view but doesn't highlight it:
screenshot

@GeckoEidechse GeckoEidechse merged commit 31f26c4 into R2NorthstarTools:main Oct 20, 2022
@Alystrasz Alystrasz deleted the refactor/router-view branch October 20, 2022 20:33
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.

None yet

2 participants