Help! This is driving me crazy ... 

I have Python/flask at the back end, Elm at front. The landing page is, 
say, http://localhost:5000. 

My Html.App.program is set up with an init Cmd wrapped around a 

Http.get decoderA "localhost:5000/initialData" 

of back-end data, . That works fine, browser url stays at landing page.

My user next clicks a button and triggers a Cmd with a different callback, 
wrapped around

Http.get decoderB "localhost:5000/nextData/bar"

and this time the back-end call happens, the response comes back, the 
correct Msg is invoked, the right *update* state transition happens, and 
then -- spontaneously -- the URL bar goes to "localhost:5000/?" -- with the 
question mark -- and a spurious GET is sent to the back end, resetting the 
page to the initial.

Any ideas appreciated!

-- 
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