We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 905090c commit 1e8ef46Copy full SHA for 1e8ef46
src/UniqueProvider/index.tsx
@@ -42,8 +42,6 @@ const UniqueProvider = ({ children }: UniqueProviderProps) => {
42
});
43
44
// ========================== Register ==========================
45
- const [popupId, setPopupId] = React.useState(0);
46
-
47
// Store the isOpen function from the latest show call
48
const isOpenRef = React.useRef<(() => boolean) | null>(null);
49
@@ -55,9 +53,6 @@ const UniqueProvider = ({ children }: UniqueProviderProps) => {
55
53
isOpenRef.current = isOpen;
56
54
57
delayInvoke(() => {
58
- if (showOptions.id !== options?.id) {
59
- setPopupId((i) => i + 1);
60
- }
61
trigger(showOptions);
62
}, showOptions.delay);
63
},
0 commit comments