@@ -18,7 +18,7 @@ import { RootComponentsFunctions } from './Rendering/JSRootComponents';
1818import { attachWebRendererInterop } from './Rendering/WebRendererInteropMethods' ;
1919import { WebStartOptions } from './Platform/WebStartOptions' ;
2020import { 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