Skip to content

Commit 24b2bc8

Browse files
committed
Use alternative navigation exports
1 parent cc9d713 commit 24b2bc8

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

src/Components/Web.JS/dist/Release/blazor.server.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Components/Web.JS/dist/Release/blazor.web.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Components/Web.JS/dist/Release/blazor.webview.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Components/Web.JS/src/GlobalExports.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { RootComponentsFunctions } from './Rendering/JSRootComponents';
1818
import { attachWebRendererInterop } from './Rendering/WebRendererInteropMethods';
1919
import { WebStartOptions } from './Platform/WebStartOptions';
2020
import { RuntimeAPI } from 'dotnet';
21-
import { performEnhancedPageLoad } from './Services/NavigationEnhancement';
21+
import { hasProgrammaticEnhancedNavigationHandler, performProgrammaticEnhancedNavigation } from './Services/NavigationUtils';
2222

2323
// TODO: It's kind of hard to tell which .NET platform(s) some of these APIs are relevant to.
2424
// It's important to know this information when dealing with the possibility of mulitple .NET platforms being available.
@@ -87,7 +87,8 @@ interface IBlazor {
8787
// APIs invoked by hot reload
8888
applyHotReload?: (id: string, metadataDelta: string, ilDelta: string, pdbDelta: string | undefined) => void;
8989
getApplyUpdateCapabilities?: () => string;
90-
performEnhancedPageLoad: (internalDestinationHref: string, fetchOptions?: RequestInit) => void;
90+
performProgrammaticEnhancedNavigation: (absoluteInternalHref: string, replace: boolean) => void;
91+
hasProgrammaticEnhancedNavigationHandler: () => boolean;
9192
}
9293
}
9394

@@ -106,7 +107,8 @@ export const Blazor: IBlazor = {
106107
NavigationLock,
107108
getJSDataStreamChunk: getNextChunk,
108109
attachWebRendererInterop,
109-
performEnhancedPageLoad
110+
performProgrammaticEnhancedNavigation,
111+
hasProgrammaticEnhancedNavigationHandler
110112
},
111113
};
112114

0 commit comments

Comments
 (0)