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

fix(plugin-theme-data): fix theme-data sensitive with route object #1357

Closed
wants to merge 2 commits into from

Conversation

Mister-Hope
Copy link
Member

@Mister-Hope Mister-Hope commented Jun 9, 2023

useThemeLocaleData() is sensitive with route object (including route.hash and route.path), so everything based on it will be recalculated when scrolling page and switching pages in same locale.

This issue is related to #1253, while that fix is valid for routeLocale itself, but not hacky way plugin-theme-data is doing. This PR adds extract check by watching routeLocale ref on app._context

This bug has serious performance impact on large sites, please merge it and release new version.

@Mister-Hope
Copy link
Member Author

Any update with this?

@meteorlxy
Copy link
Member

Closed by 9d85d4f

@meteorlxy meteorlxy closed this Jul 3, 2023
@Mister-Hope Mister-Hope deleted the theme-data branch October 11, 2023 03:19
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