-
Notifications
You must be signed in to change notification settings - Fork 923
feat(client): provide client data aliases and utils #1645
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
base: main
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 14589051312Details
💛 - Coveralls |
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.
page for pageData alias shall also be added
@@ -103,35 +103,59 @@ export const setupGlobalComputed = ( | |||
routes, | |||
siteData, | |||
siteLocaleData, | |||
|
|||
/* Aliases */ | |||
frontmatter: pageFrontmatter, |
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.
Page is missing here
@@ -46,3 +46,11 @@ export const useSiteData = (): SiteDataRef => useClientData().siteData | |||
|
|||
export const useSiteLocaleData = (): SiteLocaleDataRef => | |||
useClientData().siteLocaleData | |||
|
|||
/* Aliases */ | |||
export const useData = useClientData |
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.
and here
Before submitting the PR, please make sure you do the following
close #123
).What is the purpose of this pull request?
Description
Closes #1632
Screenshots
N/A