Skip to content

Commit 13eade4

Browse files
committed
Fixed backward compatibility
1 parent b56ad8b commit 13eade4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/useExecutorSubscription.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import type { Executor } from './types';
1111
export function useExecutorSubscription(executor: Executor): void {
1212
React.useDebugValue(executor, toJSON);
1313

14-
if (typeof React.useSyncExternalStore !== 'function') {
14+
if (typeof React.useSyncExternalStore === 'function') {
1515
const subscribe = React.useCallback(executor.subscribe.bind(executor), [executor]);
1616

1717
const getSnapshot = () => executor.version;

0 commit comments

Comments
 (0)