We currently render all tabs content even if user cannot see it. This approach hurt the app performance when many notes is opened.
Tab content must be loaded only in case the tab was visible for user at least once.
It means technically
- The tab is opened
- The tab was active
So when we initialize the app and restore the workspace state, we must do not load a tab content for anything except active tab.
We can add the markers in redux state to toggle note state when user click it to load the note content.
Technically such design would allow us to implement "unload" feature for the tabs for future.
We currently render all tabs content even if user cannot see it. This approach hurt the app performance when many notes is opened.
Tab content must be loaded only in case the tab was visible for user at least once.
It means technically
So when we initialize the app and restore the workspace state, we must do not load a tab content for anything except active tab.
We can add the markers in redux state to toggle note state when user click it to load the note content.
Technically such design would allow us to implement "unload" feature for the tabs for future.