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

Better typed fetch #2758

Open
pi0 opened this issue Sep 28, 2024 · 3 comments
Open

Better typed fetch #2758

pi0 opened this issue Sep 28, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request tba v3

Comments

@pi0
Copy link
Member

pi0 commented Sep 28, 2024

Context, work, and explanation by @danielroe: #1532

We are thinking of improving (auto-generated) typed fetch. This requires adopting a new standard/reusable type utility for fetch, which @danielroe is working on. By using the new layer, we can improve performance and consistency and adopt it in several places instead of directly being in nitro core (benefiting nuxt, and in next steps ofetch and h3 typed fetch support.)

@pi0 pi0 added enhancement New feature or request v3 tba labels Sep 28, 2024
@ImBoop
Copy link

ImBoop commented Sep 28, 2024

Improving fetch types would be an immense QOL improvement. I for one am very excited about this and am looking forward to more info as y'all push forward with it.

@NothingEverWorks
Copy link

NothingEverWorks commented Sep 28, 2024

Will this also type readBody to match the json serialization similiar to #1002?

image

And will this support alternative serializer to maintain type safety similiar to https://nuxt.com/docs/getting-started/data-fetching#using-an-alternative-serializer?

@ImBoop
Copy link

ImBoop commented Oct 25, 2024

Is this still planned? To my knowledge, it's one of the things gating Nuxt 4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tba v3
Projects
None yet
Development

No branches or pull requests

4 participants