Constructor and lifecycle events fires twice

Okay, my app contains around 15 different components that is lazy loaded, when opened I send some data in navparams.

Every component uses an extend class with no component bound to it (just an ordinary class).

If I load one of these components, the constructor and lifecycle events fires twice, which results in navparams being empty the second time. However if I do load the SAME component again, it does not fire twice. If i load another component it fires twice, if I go back to the first component that already loaded once the events fires twice.

Anyone has a clue what I am doing wrong here?

Pretty much every time I’ve seen this problem the answer turned out to be “oops, I was calling setRoot() (or some other nav function) twice”.

1 Like

I have found that using popTo in place of setRoot in pages works.