Lazy Loaded View Caching Issue (Views dont cache at all)


#1

Since I’ve moved from Ionic V2 to V3 and have now moved to lazy loaded views the startup time reduced from 11seconds to around 5 on an old iphone 5! (no notable difference on an iphone 7) which is great!

but there seems to be some issues with view caching (or lack of)

I have the 5 tabs setup and they all call ngAfterViewInit once which is expected. but if i navigate away from them (using NavController.push) they reset and ngAfterViewInit is called again.

WITH V2.

Search Tab -> search for stuff and tap results -> Go to page relating to results and tap info -> go to page with info -> hit back took you back to the page with info and back again back to the search results.

NOW WITH V3
Search Tab -> search for stuff and tap results -> Go to page relating to results and tap info -> go to page with info -> hit back and it destroys the middle view and jumps back to the search tab and then the ngAfterViewInit is called again (of search tab)


#2

video displaying the issue


#3

Did you ever find a resolution? I miss the view caching in V2…