-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Async generators for components scheduled for rendering automatically based on how congested the main thread is #5017
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
Comments
@frederikhors could you please raise this feature request using the template, rather than linking to the article? It would be much easier for us to consider if it were more concise and to the point :) I'll re-open once the description is updated to provide the what, why, and perhaps some examples of why this feature is useful! |
@antony, do you like it now? 😄 |
There are a few existing issues that are probably relevant that come up in a search for "suspense". I haven't really looked at any of them too closely though. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Nope |
Is your feature request related to a problem? Please describe.
I'd like Svelte to be able to render asynchronously, a là "React Suspense", using async generators, an idea behind a new javascript framework called Crank.js.
It would be amazing to have components which can be scheduled for rendering automatically based on how congested the main thread is.
For example the navigation in the various routers, scheduled between requestAnimationFrame decongesting the main thread.
Describe the solution you'd like
It would be great to know from @Rich-Harris if this feature has already been taken into consideration (I searched the issues before opening and found nothing), if it will be sooner or later or if it will not be at all.
Describe alternatives you've considered
I don't have enough knowledge or skills to find other solutions or to understand if Svelte can take advantage of it - not having virtual DOM.
How important is this feature to you?
I love Svelte with all my heart and I would like it to be the fastest ever.
The text was updated successfully, but these errors were encountered: