elm-community / elm-webgl

Moved to elm-explorations/webgl

Home Page:http://package.elm-lang.org/packages/elm-explorations/webgl/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nothing gets rendered until the program receives it's first message

szabba opened this issue · comments

As we've discussed on Slack with @w0rm , it seems that elm-webgl doesn't render anything until after the program receives it's first message. I've made a gist that exhibits this behaviour. The conditions in lines https://gist.github.com/szabba/13a90267523f122d259a16fe9c5954be#file-main-elm-L18-L23 can be used to make it work immediately or after a five second delay.

To poke at the code locally, you can clone the gist

$ git clone https://gist.github.com/13a90267523f122d259a16fe9c5954be.git

@szabba I published 3.0.1 that contains this fix