This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
Clarity Tabs - Lazy loading? #5779
Unanswered
JeTmAn1981
asked this question in
Q&A
Replies: 1 comment 4 replies
-
If you separate the view lifecycle from the data model loading, you can have a service that makes the network calls, preloading, caching, etc, as you may like it. Then only leave the data visualization to the tabs contents. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So when it comes to tabs and lazy loading, it appears you have the option to either:
Am I understanding this correctly?
What I'd like is something in between. I want the ability to specify which tab should show by default, but I also want each tab's content to only be initialized exactly one time, when I click on that tab. The reason is because I want to persist some changes between tabs. I have tabs which are different views on the same data, but for various reasons I have change events set up which are needed to persist those changes over to the other tab. That doesn't work if the tabs are destroyed and initialized every time you switch. The changes are lost.
How can I do this?
Beta Was this translation helpful? Give feedback.
All reactions