Passing custom props to DrawerContent render function #9839
Unanswered
SaeedZhiany
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Current behavior
@satya164
I need to pass some extra props to my custom drawer sidebar component (like some callback handler and etc). in v5 I was passing them using
drawerContentOptions
like below:I just figure out that the
DrawerContentProps
type has changed and it no longer receives the Generic type like beforeI didn't see any documentation about this breaking change on the upgrading-from-5.x page.
Expected behavior
I need to pass my owned defined props to my custom sidebar component like v5.
how can I achieve the same behavior in v6?
Please, also notice that I don't wanna make the
renderSidebar
function as a lambda function like this. because the function is fixed and no need to recreate it in every re-render of theAppContainer
functional component.Reproduction
Platform
Packages
Environment
Beta Was this translation helpful? Give feedback.
All reactions