[elm-discuss] Re: virtual-dom hooks

2016-06-25 Thread Maxwell Gurewitz
You can implement post render hooks using requestAnimationFrame. Elm guarantees that the dom changes corresponding to an update will be rendered after a requestAnimationFrame. Use https://github.com/elm-lang/animation-frame On Friday, March 25, 2016 at 8:03:39 AM UTC-7, San Gillis wrote: > >

Re: [elm-discuss] Re: virtual-dom hooks

2016-06-24 Thread San Gillis
Like Joe mentioned, the virtual-dom implementation changed completely in 0.17. I have not had time yet to look into porting this library to 0.17 or look into the new virtual-dom, so unfortunately I can't help you at this time. But if what Joe says is right (there is no mechanism for creation ev

Re: [elm-discuss] Re: virtual-dom hooks

2016-06-24 Thread Joe Andaverde
The rewrite of virtual-dom in 0.17 does not provide any mechanism for knowing when a dom element is created, re-rendered, or removed. Which would be essential for initializing a third party control. Even in the version used in 0.16 I'm not sure the entire life-cycle for a dom node was available

Re: [elm-discuss] Re: virtual-dom hooks

2016-06-24 Thread Robert Walter
I'm also interested to learn if this can be ported to 0.17 and if not, what the reasons are. Looking at the Upgrade site , I couldn't see why this shouldn't be possible, but then again I haven't tried it. Maybe someone

[elm-discuss] Re: virtual-dom hooks

2016-06-23 Thread Dmytro Zaienchyk
Hi, It works for me with Elm 0.16 (using elm-codemirror). Thanks guys! But it is possible to make it workable for Elm 0.17? Or solution is only to use ports? Thanks! On Friday, 25 March 2016 16:03:39 UTC+1, San Gillis wrote: > > Hi, > > I built a simple integration of Highcarts.js in Elm usi