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 b56ad8b commit 13eade4Copy full SHA for 13eade4
src/main/useExecutorSubscription.ts
@@ -11,7 +11,7 @@ import type { Executor } from './types';
11
export function useExecutorSubscription(executor: Executor): void {
12
React.useDebugValue(executor, toJSON);
13
14
- if (typeof React.useSyncExternalStore !== 'function') {
+ if (typeof React.useSyncExternalStore === 'function') {
15
const subscribe = React.useCallback(executor.subscribe.bind(executor), [executor]);
16
17
const getSnapshot = () => executor.version;
0 commit comments