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

feat(define-router): handleApi #1099

Merged
merged 2 commits into from
Dec 28, 2024
Merged

feat(define-router): handleApi #1099

merged 2 commits into from
Dec 28, 2024

Conversation

dai-shi
Copy link
Owner

@dai-shi dai-shi commented Dec 28, 2024

No description provided.

Copy link

vercel bot commented Dec 28, 2024

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

Name Status Preview Updated (UTC)
waku ✅ Ready (Inspect) Visit Preview Dec 28, 2024 7:36am

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.

Copy link
Contributor

@tylersayshi tylersayshi left a comment

Choose a reason for hiding this comment

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

the rest lgtm

staticElementIds?: SlotId[];
noSsr?: true;
is404?: true;
isApi?: true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still plan to have getApiConfig separate from getRouteConfig?

Including isApi here makes it seem like we'll use this type for both kinds of configs, api and route.

Or is this just temporary and getApiConfig will come later?

Copy link
Owner Author

Choose a reason for hiding this comment

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

It is an internal implementation detail. The define-router users won't see it. Yeah, I think separating them would be good. They have different configs and I would like to pair getFooConfig and handleFoo.

@dai-shi dai-shi marked this pull request as ready for review December 28, 2024 08:49
@dai-shi dai-shi merged commit 595491d into main Dec 28, 2024
26 checks passed
@dai-shi dai-shi deleted the feat/define-router/handle-api branch December 28, 2024 09:01
@dai-shi dai-shi mentioned this pull request Dec 28, 2024
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.

2 participants