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(nuxt): ignore definePageMeta warning for client only pages in dev #28246

Merged
merged 5 commits into from
Jul 21, 2024

Conversation

huang-julien
Copy link
Member

🔗 Linked issue

📚 Description

Hi 👋 this PR fix an issue with #27839
Since the wrapper is being rendered as the route component for client-pages, we need to mark clientonly page components so definePageMeta can ignore it in dev

Copy link

stackblitz bot commented Jul 21, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@danielroe
Copy link
Member

Is the issue here that page metadata isn't respected for client-only pages?

@huang-julien
Copy link
Member Author

The issue is that component is the wrapper returned from createClientPage while definePageMeta is called from the page component. So it means that conditions in the if statement will never be true for client only pages

@danielroe
Copy link
Member

Oh, just wondering why you linked #27839.

@danielroe danielroe merged commit 4d73054 into main Jul 21, 2024
38 checks passed
@danielroe danielroe deleted the fix/dev_clientonlypagewarning branch July 21, 2024 19:04
@github-actions github-actions bot mentioned this pull request Jul 21, 2024
@github-actions github-actions bot mentioned this pull request Jul 23, 2024
5 tasks
@github-actions github-actions bot mentioned this pull request Aug 8, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants