You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am passing a custom snack bar component using "Components" prop to SnackbarProvider. I want to access snackbar closing function from my custom snack bar component. <SnackbarProvider Components={{ success: React.forwardRef((props, ref) => { console.log("========>", props) return ( <Alert ref={ref} onClose={() => {}} key={props.id} severity="success" > {props.message} </Alert> ); }), }} maxSnack={3} >
I want to close snack bar when onClose is triggered from Alert Component.
Current Behavior
I tried to log the props from the callback of success, but I do not see any function to close snackbar
Steps to Reproduce
Link:
Context
I want to close snack bar when onClose is triggered from Alert Component.
Your Environment
Tech
Version
Notistack
v3.0.1
React
18.2.0
Browser
chorme
etc.
The text was updated successfully, but these errors were encountered:
Expected Behavior
I am passing a custom snack bar component using "Components" prop to SnackbarProvider. I want to access snackbar closing function from my custom snack bar component.
<SnackbarProvider Components={{ success: React.forwardRef((props, ref) => { console.log("========>", props) return ( <Alert ref={ref} onClose={() => {}} key={props.id} severity="success" > {props.message} </Alert> ); }), }} maxSnack={3} >
I want to close snack bar when onClose is triggered from Alert Component.
Current Behavior
I tried to log the props from the callback of success, but I do not see any function to close snackbar
Steps to Reproduce
Link:
Context
I want to close snack bar when onClose is triggered from Alert Component.
Your Environment
The text was updated successfully, but these errors were encountered: