Replies: 1 comment 1 reply
-
If there's a way to reassign sidebar items at runtime, you can store your sidebars using Build-time data loading and then load it in your logic. But I don't see a api to do that, they're readonly now. See useSidebar |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
To fullfill different users needs, I need to configure two sidebars in the document and use button to toggle. i have provided a toggle button upon the sidebar, but i don't know how can i switch sidebar dynamically
Perhaps it would be clearer with a picture

I found similar needs in the community, but it was just about generating a sidebar.
Beta Was this translation helpful? Give feedback.
All reactions