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

deduplicating api requests during client-side hydration #56

Open
lukeromanowicz opened this issue Apr 10, 2023 · 0 comments
Open

deduplicating api requests during client-side hydration #56

lukeromanowicz opened this issue Apr 10, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@lukeromanowicz
Copy link
Contributor

Please describe the problem that your request should resolve.

Some of the fetch requests on the client-side are executed even though the data has been already resolved on the server-side and provided for the client in the application state, It's because lack of return value in handlers of useAsyncData or lack of useAsyncData at all. Would be nice to improve it for hydration performance.

Describe the solution you'd like

As above

Is it already possible to achieve the same outcome in any other way? If so, how?

Yeah, but useAsyncData is the native, recommended way.

Additional context

@lukeromanowicz lukeromanowicz added the enhancement New feature or request label Apr 10, 2023
@janmichek janmichek mentioned this issue Sep 2, 2024
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant