Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding closeSnackbar in front of enqueueSnackbar will make enqueueSnackbar invalid #605

Open
oneQiu opened this issue Jun 16, 2024 · 0 comments

Comments

@oneQiu
Copy link

oneQiu commented Jun 16, 2024

   <Button onClick={() => {
        snackbar.closeSnackbar('test');
        snackbar.enqueueSnackbar(<div key={nanoid()}>this is message</div>, {
          persist: true,
          key: 'test',
          preventDuplicate: true,
          autoHideDuration: 0
        })
      }}>开始通知</Button>

I want each click to appear instead of just closing it.

Screen-2024-06-16-230349.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant