Skip to content

Commit 649bc35

Browse files
committed
[hooks] Missing dependency
1 parent 15cbef3 commit 649bc35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ui-react/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ const useListenable = (
281281
const getResult = useCallback(
282282
() => thing?.[getterPrefix + listenable]?.(...args) ?? defaulted,
283283
/* eslint-disable-next-line react-hooks/exhaustive-deps */
284-
[thing, listenable, ...args, defaulted],
284+
[thing, getterPrefix, listenable, ...args, defaulted],
285285
);
286286
const result = useRef();
287287
useMemo(() => (result.current = getResult()), [getResult]);

0 commit comments

Comments
 (0)