mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-01 07:49:43 +02:00
* fix(v2): avoid slowdown transition with huge sidebar items * move useCollapsible to theme-common * @docusaurus/theme-classic => watch mode should include type-checking * refactor useCollapsible => encapsulate more behavior / state / ref inside it, making code simpler for component using it * useCollapseAnimation => animate DOM properties directly instead of using React inline styles => optimize perf from 4 render per click to 1 render per click * add missing items in deps array * rename ref to collapsibleRef * lint Co-authored-by: slorber <lorber.sebastien@gmail.com> |
||
---|---|---|
.. | ||
src | ||
package.json | ||
README.md | ||
tsconfig.json |
@docusaurus/theme-common
Common code for Docusaurus themes.