FlexLayout icon indicating copy to clipboard operation
FlexLayout copied to clipboard

Keep all tabs mounted

Open riwu opened this issue 3 years ago • 2 comments

Describe the bug

Can we add support to either mount all tabs immediately, or lazy loading -- once mounted, don't unmount them (unless the tab is closed)?

This is useful for persisting local states when switching tabs.

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

Expected behavior

Operating System

MacOS

Browser Type?

Chrome

Browser Version

Version 101.0.4951.67

Screenshots or Videos

Additional context

No response

riwu avatar May 17 '22 16:05 riwu

The default behaviour is to lazy load tabs and keep mounted once loaded, state is maintained when tabs are moved.

You can force tabs to initially load by setting the tab attribute enableRenderOnDemand or the global attribute tabEnableRenderOnDemand to false

nealus avatar May 17 '22 18:05 nealus