-
Notifications
You must be signed in to change notification settings - Fork 178
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
Async Support? #41
Comments
This is typically only desirable for server side rendering. Since our initial goal is to support existing templating languages those could just use their existing string generation instead. |
Dust.js is a pretty popular templating engine with asynchronous support. I'm sure there are other engines out there that support async rendering as well. |
@kesne Oh, I've implemented a few of those myself. Just saying it is typically a very bad idea on the client because it leads to uncontrollable re-layouts. If this comes up as something people want we can make something like this work
But I don't see very high priority. |
I would also be concerned about people potentially kicking off a second render while the first is in progress, which could lead to strange behavior. One reason why I think async rendering generally isn't handled by virtual DOM implementations is that invoking a render again when you have more data usually isn't too bad. |
@cramforce I see your concern with it now. I think it's only dangerous if you don't have some sort of control between when re-layouts occur. Though I understand it being low-priority or generally out of scope for the project. @sparhami That's true, I guess that's the alternative approach to this. Though if you have a cascading async layout it might get less-than-ideal. Although I guess if your site is structured like that you probably have bigger problems... |
Any plans or idea on adding support for asynchronous rendering?
For example, allowing the following example to work.
The text was updated successfully, but these errors were encountered: