Skip to content

Commit e31f290

Browse files
committed
refactor: fix lint issues
1 parent 5259e10 commit e31f290

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/wouter-preact/src/react-deps.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function useSyncExternalStore(subscribe, getSnapshot, getSSRSnapshot) {
4242
if (!is(_instance._value, getSnapshot())) {
4343
forceUpdate({ _instance });
4444
}
45-
}, [subscribe, value, getSnapshot]);
45+
}, [subscribe, value, getSnapshot]); // eslint-disable-line react-hooks/exhaustive-deps
4646

4747
useEffect(() => {
4848
if (!is(_instance._value, _instance._getSnapshot())) {
@@ -54,7 +54,7 @@ export function useSyncExternalStore(subscribe, getSnapshot, getSSRSnapshot) {
5454
forceUpdate({ _instance });
5555
}
5656
});
57-
}, [subscribe]);
57+
}, [subscribe]); // eslint-disable-line react-hooks/exhaustive-deps
5858

5959
return value;
6060
}

0 commit comments

Comments
 (0)