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

Router Performance fix to include theme in route's context #2971

Merged
merged 8 commits into from
Sep 29, 2017

Conversation

lcampanis
Copy link
Collaborator

@lcampanis lcampanis commented Sep 28, 2017

Layout's theme is now included in each route when Router initialises all routes Router.initPackageRoutes so it can be easily included in as a body-class.

Previously, in order to get the theme, the layout was refetched in each route change using getRouteLayout() which used the same mechanics with Router for layout resolve, with fix it is now more performant.

Credit @prosf

@lcampanis lcampanis changed the title Add fallback to default workflow. Router Performance fix to include theme in route's context Sep 28, 2017
@spencern
Copy link
Contributor

@mikemurray can you review this one? You've got more router experience/wrote it

@spencern spencern requested review from mikemurray and removed request for spencern and kieckhafer September 28, 2017 20:01
@mikemurray
Copy link
Member

@spencern reviewing now.

@mikemurray
Copy link
Member

Not related to this PR, but there are some more issues with routing and grey screen logged here: #2975

Will review once routing is reliable again.

Copy link
Member

@mikemurray mikemurray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

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.

5 participants