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: move skip logic from define-router to create-pages #1192

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

dai-shi
Copy link
Owner

@dai-shi dai-shi commented Jan 27, 2025

I was skeptical about it. Actually, we tried kind of both in our iteration.
Having skip logic in defineRouter can't support actually skipping rendering component. So, this moves the logic and the responsibility from define-router to create-pages.

cc @tylersayshi

Copy link

vercel bot commented Jan 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
waku ✅ Ready (Inspect) Visit Preview Jan 27, 2025 11:05am

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@dai-shi dai-shi marked this pull request as ready for review January 27, 2025 11:45
@dai-shi dai-shi merged commit 7c572ca into main Jan 27, 2025
26 checks passed
@dai-shi dai-shi deleted the refactor/create-pages-handle-skip branch January 27, 2025 11:55
@dai-shi
Copy link
Owner Author

dai-shi commented Jan 27, 2025

Having skip logic in defineRouter can't support actually skipping rendering component.

That's my misunderstanding as create-pages doesn't render component.
Let me revert it.

dai-shi added a commit that referenced this pull request Jan 27, 2025
@dai-shi dai-shi mentioned this pull request Jan 27, 2025
dai-shi added a commit that referenced this pull request Jan 27, 2025
Revert "refactor: move skip logic from define-router to create-pages
(#1192)"

This reverts commit 7c572ca.
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.

1 participant