We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48f4973 commit 2ab966fCopy full SHA for 2ab966f
1 file changed
src/packages/notify/notify.tsx
@@ -35,8 +35,11 @@ function getInstance(
35
36
function notice(opts: any) {
37
opts = { ...options, ...opts }
38
- getInstance(opts, (notification: any) => {
39
- messageInstance = notification
+ return new Promise<void>((resolve) => {
+ getInstance(opts, (notification: any) => {
40
+ messageInstance = notification
41
+ resolve()
42
+ })
43
})
44
}
45
0 commit comments