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

perf: improve performance with prefetching #2287

Open
Meierschlumpf opened this issue Feb 9, 2025 · 0 comments
Open

perf: improve performance with prefetching #2287

Meierschlumpf opened this issue Feb 9, 2025 · 0 comments

Comments

@Meierschlumpf
Copy link
Member

To improve the performance of suspense queries from the widgets it would be nice to prefetch the queries on the server. Then the calls would not need to go through the network.

https://tanstack.com/query/latest/docs/framework/react/reference/hydration#hydrationboundary
https://www.answeroverflow.com/m/1169761966248693810

In the _creator.tsx just iterate through all widgets and call a method of them (probably new file prefetch.ts in widgets or similar)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant