Skip to content

Commit 1e8ef46

Browse files
committed
fix: lint
1 parent 905090c commit 1e8ef46

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/UniqueProvider/index.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ const UniqueProvider = ({ children }: UniqueProviderProps) => {
4242
});
4343

4444
// ========================== Register ==========================
45-
const [popupId, setPopupId] = React.useState(0);
46-
4745
// Store the isOpen function from the latest show call
4846
const isOpenRef = React.useRef<(() => boolean) | null>(null);
4947

@@ -55,9 +53,6 @@ const UniqueProvider = ({ children }: UniqueProviderProps) => {
5553
isOpenRef.current = isOpen;
5654

5755
delayInvoke(() => {
58-
if (showOptions.id !== options?.id) {
59-
setPopupId((i) => i + 1);
60-
}
6156
trigger(showOptions);
6257
}, showOptions.delay);
6358
},

0 commit comments

Comments
 (0)