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 883983c commit ce8e55bCopy full SHA for ce8e55b
packages/docusaurus-theme-common/src/utils/historyUtils.ts
@@ -56,7 +56,11 @@ export function useHistorySelector<Value>(
56
selector: (history: History<unknown>) => Value,
57
): Value {
58
const history = useHistory();
59
- return useSyncExternalStore(history.listen, () => selector(history));
+ return useSyncExternalStore(
60
+ history.listen,
61
+ () => selector(history),
62
63
+ );
64
}
65
66
/**
0 commit comments