Skip to content

Commit

Permalink
Use alternative navigation exports
Browse files Browse the repository at this point in the history
  • Loading branch information
captainsafia committed Aug 17, 2023
1 parent e164c8a commit e7cb05d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Components/Web.JS/dist/Release/blazor.server.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Components/Web.JS/dist/Release/blazor.web.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Components/Web.JS/dist/Release/blazor.webview.js

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions src/Components/Web.JS/src/GlobalExports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { RootComponentsFunctions } from './Rendering/JSRootComponents';
import { attachWebRendererInterop } from './Rendering/WebRendererInteropMethods';
import { WebStartOptions } from './Platform/WebStartOptions';
import { RuntimeAPI } from 'dotnet';
import { performEnhancedPageLoad } from './Services/NavigationEnhancement';
import { hasProgrammaticEnhancedNavigationHandler, performProgrammaticEnhancedNavigation } from './Services/NavigationUtils';

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

Expand All @@ -106,7 +107,8 @@ export const Blazor: IBlazor = {
NavigationLock,
getJSDataStreamChunk: getNextChunk,
attachWebRendererInterop,
performEnhancedPageLoad
performProgrammaticEnhancedNavigation,
hasProgrammaticEnhancedNavigationHandler
},
};

Expand Down

0 comments on commit e7cb05d

Please sign in to comment.