My Elm app lets the user rotate pictures: when a picture on the screen is clicked, elm makes an API call to rotate the picture file on the server. Following that I'd like the rotated image to show in the browser.
But the virtual DOM hasn't changed at all since the img node has the same src URL. Is there a way I can force the img to be recreated anyway?
Sure, I could use a Keyed node or modify some attribute on my img to force the redraw, but that would mean adding something to my model that is modified on rotate. It's possible but not very elegant.