Persist sidebar state (categories expanded state, hidden sidebar) #6319
Labels
domain: theme
Related to the default theme components
feature
This is not a bug or issue with Docusausus, per se. It is a feature request for the future.
Have you read the Contributing Guidelines on issues?
Description
It would be useful to persist sidebar state like which categories are collapsed and if the sidebar is hidden or not in local storage (or session storage?), so that the user's navigation experience is not interrupted by, say, going to the blog briefly.
Has this been requested on Canny?
No
Motivation
Better UX
API design
Persist state in local storage / session storage and retrieve on sidebar first render. After #3811 we probably have a better way to control the collapsed state of individual categories.
Have you tried building it?
No
Self-service
The text was updated successfully, but these errors were encountered: