Hi,

I've been working through the Elm Guide recently to learn about the updates 
in 0.17, and just completed the example gif-fetching app in the HTTP 
effects section.

http://elm-lang.org/examples/http

I noticed that when pressing the "More Please" button, the GIF playback 
restarts while the fetching happens in the background.

I assume this is because the DOM objects are being replaced when the model 
is sent back through the application.

Overall I don't think this is a very common concern, but I could see there 
being rare cases where you would might want to defer updates to the DOM, 
maybe until the fetch operation is completed.

Is there a way to alter that existing HTTP example which would prevent the 
GIFs from being reloaded when the button is pressed?

Thanks,

Nick

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to