How can I solve a page crash when using sidebar_custom_props in front matter?
#8817
Replies: 1 comment
-
|
Never mind. We found out that the page crash is due to an internal issue on swizzled code that includes front matter manipulation. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I'm using Docusaurus 2.2.0 and trying to test 'sidebar_custom_props', which is documented in Doc item metadata.
However, when I add
sidebar_custom_propsin page front matter as follows,The following error occurs in the parent page and sibling pages:
The error occurs whether or not I try to access the props using
useCurrentSidebarCategory().itemsanditem.customProps. That is, simply addingsidebar_custom_propsin page front matter seems to cause the error.Is there any prerequisites for using
sidebar_custom_props?I'd greatly appreciate any help in solving this issue.
Beta Was this translation helpful? Give feedback.
All reactions