Skip to content

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

Open
frederikhors opened this issue Jun 14, 2020 · 6 comments
Labels
awaiting submitter needs a reproduction, or clarification temp-stale

Comments

@frederikhors
Copy link

frederikhors commented Jun 14, 2020

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.

@Conduitry Conduitry added the awaiting submitter needs a reproduction, or clarification label Jun 15, 2020
@antony
Copy link
Member

antony commented Jun 15, 2020

@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 antony closed this as completed Jun 15, 2020
@frederikhors frederikhors changed the title Async generators, like Crank.js Async generators for components scheduled for rendering automatically based on how congested the main thread is Jun 15, 2020
@frederikhors
Copy link
Author

frederikhors commented Jun 15, 2020

@antony, do you like it now? 😄

@antony antony reopened this Jun 15, 2020
@Conduitry
Copy link
Member

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.

@stale
Copy link

stale bot commented Jun 27, 2021

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.

@stale
Copy link

stale bot commented Dec 24, 2021

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.

@stale stale bot added the stale-bot label Dec 24, 2021
@frederikhors
Copy link
Author

Nope

@stale stale bot removed the stale-bot label Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting submitter needs a reproduction, or clarification temp-stale
Projects
None yet
Development

No branches or pull requests

4 participants