4 ms·
As someone who writes complex applications on the client side, I welcome a lot of the changes coming up for the next release and they are seriously anticipated.
by no1youknowz 8y ago
As someone who writes complex applications on the client side, I welcome a lot of the changes coming up for the next release and they are seriously anticipated.
Anything that positions JSX for Vue to be similar to that of React would be awesome for me.
I have some issues with relativity with deeply nested JSX templates. Unfortunately I wasn't able to get any help from the discord channel as most are opposed to JSX, couldn't understand my code and also state I'm doing it wrong and should use Vue components. (sigh)
In one SFC, I have over 500 instances of this.$set, really looking forward to proxies.
Finally, iframe support isn't as mature as in React. Sure there is [0] but libraries such as VideoJS [2] don't work correctly. Thus you need another Vue instance inside the iframe and have postMessage communicating updates between both data Objects with something like [1]. Which ulimately slows down the UX.
[0]: https://forum.vuejs.org/t/render-inside-iframe/6419/2 https://forum.vuejs.org/t/render-inside-iframe/6419/2
[1]: https://gist.github.com/pbojinov/8965299 https://gist.github.com/pbojinov/8965299
[2]: https://forum.vuejs.org/t/videojs-not-rendering-inside-using-linus-iframe/44139 https://forum.vuejs.org/t/videojs-not-rendering-inside-using...
I should mention, I do love Vue, it's awesome and a major step up from something like jQuery.
-------
Maybe someone from the core team comes across this or someone might know [4].
Taken from the: State of Vue by Evan: [3]
He mentions 4 release channels:
- Stable
- Beta
- Nightly
- LTS
Would really like to see if 2.6-next beta/nightly fixes these issues.
How can I get my hands on such a release?
[3]: https://youtu.be/AiF3XOu02-0?t=1845 https://youtu.be/AiF3XOu02-0?t=1845
[4]: https://i.redd.it/0soip7wqxth11.png https://i.redd.it/0soip7wqxth11.png
- erikpukinskis 8y agoWhat does React do with iframes? I don’t understand how you could have a component in an I frame without having two instances of React either.
- no1youknowz 8y agoCheck the article here [0]. [0]: https://medium.com/@ryanseddon/rendering-to-iframes-in-react-d1cb92274f86 https://medium.com/@ryanseddon/rendering-to-iframes-in-react...
- honopu 8y agoThat's a lot of sets. I've have you tried out deep-model? I've had varying success with this, essentially it creates a proxy object that wraps, its a computed property on your component. If vuex is too much for your application, but you're using that many $sets for whatever reason, maybe it would help?
- no1youknowz 8y agoI havent tried deep-model. To be honest, knowing about 2.6-next/3.0 on it's way. I can let it be for now and then refactor when the new version hits in 2019. I'm not quite sure about VueX. There's this [0]. Which I'm going to attempt soon. Would be nice if VueX could help. Would solve the UX and postMessage issue that I have. For context. It's a page builder like leadpages, elementor for wordpress, unbounce, etc. It's one big array which then gets parsed as JSX and then rendered out to the vDom. [0]: https://forum.vuejs.org/t/share-vuex-store-with-vue-app-in-iframe/15411 https://forum.vuejs.org/t/share-vuex-store-with-vue-app-in-i...