You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to keep some paths loaded in memory, i.e. not recreate the views when the path changes?
I was implementing a tab bar layout like in the RandomUsers example, but with this solution the pages get recreated every time the user switches tab, which can make the process of switching tab a bit laggy.
Is there a way to keep those pages in memory to provide a smooth tab bar experience?
Note: this would also allow keeping states, like scrolling positions. It just feels more natural.
The text was updated successfully, but these errors were encountered:
No, this is beyond the scope of SwiftUI Router and would probably require a significant rewrite of the framework. It also raises questions like what the state is based on. The path of the Navigator or the path of the Route (which may contain placeholders)?
Sadly as the framework currently works you're somewhat forced to keep track of states yourself (which I understand is very difficult when it comes to scrollviews et al) 😞
Is there a way to keep some paths loaded in memory, i.e. not recreate the views when the path changes?
I was implementing a tab bar layout like in the RandomUsers example, but with this solution the pages get recreated every time the user switches tab, which can make the process of switching tab a bit laggy.
Is there a way to keep those pages in memory to provide a smooth tab bar experience?
Note: this would also allow keeping states, like scrolling positions. It just feels more natural.
The text was updated successfully, but these errors were encountered: