Copy link to clipboard
Copied
I having problems with navigator.pushView(MyView), and problem is - it creates all the time NEW instance of the MyView!!!??
I do navigator.pushView(MyView), it switches to MyView, the I hit back button, then navigator.pushView(MyView) again, and the object reference is new! But thing is that OLD MyView view still exists and receiving events, it messing up stuff!!!
Any suggestions?
Copy link to clipboard
Copied
It sounds like something outside of MyView is keeping a hard reference
to it so it is not getting garbage collected. It could also be the
destruction policy in MyView is set to "never".
Copy link to clipboard
Copied
Yes ans I figured out and now it works