init is not a function. It is a constant value. It will be evaluated immediately and, if you've wired things up right, referred to in main.
If you have a message that triggers a state reset, it's not crazy to reuse the init value. But it sounds like it's getting used when you don't want it to be, so maybe you're using it somewhere other than main on accident? If not, then you may have some page reloading issue that's not tied to init specifically. -- 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.
