有没有办法在 ChakraUI 选项卡组件中强制卸载选项卡?
Is there a way to force tab unmount in ChakraUI tabs component?
我尝试了 lazyBehavior="unmount"(这是默认设置)。
无论如何,当标签更改时它不会被卸载..
https://codesandbox.io/s/friendly-hugle-jqezs?file=/src/App.tsx
我认为你还缺少:
isLazy={true}
lazyBehavior
道具的文档说:
The lazy behavior of tab panels' content when not active. Only works
when isLazy={true}
我尝试了 lazyBehavior="unmount"(这是默认设置)。 无论如何,当标签更改时它不会被卸载..
https://codesandbox.io/s/friendly-hugle-jqezs?file=/src/App.tsx
我认为你还缺少:
isLazy={true}
lazyBehavior
道具的文档说:
The lazy behavior of tab panels' content when not active. Only works when
isLazy={true}