This repository was archived by the owner on Jan 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Initial command obliterates previous state #18
Comments
Hi, I added this and published it to npm: Do you think this can solve your problem? |
I think something close to that would work, but I don't believe that |
I think I came out a better way to solve your problem.
Then your Main.init will get flags with hotSwapped === true |
Finally got to test this, and yep it works well for me. Thanks! |
AndrewKvalheim
added a commit
to AndrewKvalheim/collinear
that referenced
this issue
Mar 31, 2017
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
On start up, my app randomizes its state as part of its init command:
The problem here is that its
NewModel
message ticks after the app's previous state is injected.Is this something that can be worked around by elm-hot-reload? If not, what about a way to signal to the app that it has been hot reloaded? That way I could simply not issue the startup command in those cases. e.g. :
The text was updated successfully, but these errors were encountered: