News for hackers. Stuff that matters.
Re:Ask HN: Anyone Using Elm in Production? by pault on Monday March 04, 2019 @08:46AM (#19301149)
What about ajax requests though? What if you are debugging a component that sends a DELETE request?
Re:Ask HN: Anyone Using Elm in Production? by maaaats on Monday March 04, 2019 @08:50AM (#19301178)
It doesn't end up spamming requests the same way as in react, as there is no "componentDidMount" that can trigger side-effects. In elm it's just different states being rendered.
Re:Ask HN: Anyone Using Elm in Production? by pault on Monday March 04, 2019 @12:20PM (#19302958)
Ah sorry, I didn't mean side effects in lifecycle methods, I meant DOM events like click, etc. If you click a button that deletes a resource on your API, there is no time traveling because the outside world doesn't time travel along with your debugger (unfortunately). :)

You can isolate your side effects somewhere, but they still have to respond to actions/events/messages so if your time traveler dispatches actions you'll end up making duplicate requests.

Re:Ask HN: Anyone Using Elm in Production? by Skinney on Monday March 04, 2019 @12:45PM (#19303277)
I could be wrong, but I don't think Elm re-triggers side-effects when you go back in time. It just brings back the state as of that moment in time.