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 1deccb8 commit 29a8700Copy full SHA for 29a8700
packages/react/src/reactrouter-compat-utils/utils.ts
@@ -29,7 +29,7 @@ export function clearNavigationContext(): void {
29
/** Gets the current (most recent) navigation context if inside a patchRoutesOnNavigation call. */
30
export function getNavigationContext(): NavigationContext | null {
31
const length = _navigationContextStack.length;
32
- return length > 0 ? (_navigationContextStack[length - 1] ?? null) : null;
+ return length > 0 ? _navigationContextStack[length - 1] : null;
33
}
34
35
/**
0 commit comments