ibm-js / dapp

AMD-based Application Framework for building Web & Mobile applications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make sure nested views transition properly.

edchat opened this issue · comments

There are some issues with the transitions of nested views, especially when the transition is at a parent view. If the new parent view has not been loaded it can be shown before it's children are loaded, so the transition can show a blank view before the children load, and the children will be shown without the transition.

Currently there can be a double transition if for example, in unit test nestedViewsActivateCalls, if the current app is currently showing P1_S1_V2, and does a transition to V7, and then does a to P1_S1_V1, you will see the first transition from V7 to P1, and a second transition from V2 to V1 since the last time P1/S1 was shown it was shown with V2. You can set a break point in the testcase before the call to testApp.showOrHideViews('P1', {..}) and then you will see the two updates as you step forward. This problem can also be seen running this test/sample: https://github.com/edchat/dappSamples/tree/master/simple2
If you select P1_S1_V2, then V7, then P1_S1_V1