diff --git a/src/SnackbarProvider.tsx b/src/SnackbarProvider.tsx index 5a6a9cad..a0c7f230 100644 --- a/src/SnackbarProvider.tsx +++ b/src/SnackbarProvider.tsx @@ -31,8 +31,8 @@ class SnackbarProvider extends Component { snacks: [], queue: [], // eslint-disable-line react/no-unused-state contextValue: { - enqueueSnackbar: this.enqueueSnackbar, - closeSnackbar: this.closeSnackbar, + enqueueSnackbar: this.enqueueSnackbar.bind(this), + closeSnackbar: this.closeSnackbar.bind(this), }, }; }