-
Notifications
You must be signed in to change notification settings - Fork 214
getComponent support function return a Promise #51
Comments
Vue bindings for server like this:
|
I'm not sure I understand - are you saying that the vue server renderer does not synchronously produce a string? |
@ljharb Yes. |
According to the code, |
|
|
Gotcha; so you'd need hypernova/src/utils/BatchManager.js Line 160 in 5dbddc4
Seems doable/reasonable to me. |
@baoti you could use this npm package https://www.npmjs.com/package/hypernova-vue, there's an article about it too https://medium.com/@felipegaiacharly/using-vue-js-with-hypernova-server-ce792dcf1ac7 |
It's already supported since [2.1.1] - 2017-06-15, commit. |
@marconi1992 Thanks, It works. |
I am working on vue bindings for Hypernova, but vue-server-renderer renderer pass html by callback:
So, I'd like
getComponent
support a function which return a Promise, just likeprops => Promise.resole(html)
.The text was updated successfully, but these errors were encountered: