facebook / facebook/docusaurus
Persist sidebar state (categories expanded state, hidden sidebar)
- Lenguaje dominante
- TypeScript
- Estrellas
- 66.2k
- Forks
- 10k
- Merge medio
- 1 d 3 h
- PR fusionados (30 d)
- 52
Descripción
### Have you read the Contributing Guidelines on issues?
- [X] I have read the [Contributing Guidelines on issues](https://github.com/facebook/docusaurus/blob/main/CONTRIBUTING.md#reporting-new-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
- [ ] I'd be willing to contribute this feature to Docusaurus myself.
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.