接入原生返回栈状态消费
H5 新增 navigation.canGoBack hook 并在直达二级页时补齐返回锚点 路由导航保留完整原生宿主上下文并标记应用历史状态 补齐 HostBridge 返回栈消费测试、门禁和文档
This commit is contained in:
@@ -59,6 +59,7 @@ const h5HostBridgeScannedFacadeImports = new Set([
|
||||
]);
|
||||
const h5HostBridgeCallChainWrapperFiles = [
|
||||
'src/hooks/useHostLifecycleActive.ts',
|
||||
'src/hooks/useHostNavigationCanGoBack.ts',
|
||||
'src/hooks/useHostNetworkOnline.ts',
|
||||
'src/components/platform-entry/platformProfileHostClipboard.ts',
|
||||
'src/components/platform-entry/platformHostBridgeSync.ts',
|
||||
@@ -85,6 +86,7 @@ const h5HostBridgeRequiredCallChainFiles = [
|
||||
'src/components/square-hole-result/SquareHoleResultView.tsx',
|
||||
'src/hooks/useBackgroundMusic.ts',
|
||||
'src/hooks/useHostLifecycleActive.ts',
|
||||
'src/hooks/useHostNavigationCanGoBack.ts',
|
||||
'src/hooks/useHostNetworkOnline.ts',
|
||||
'src/main.tsx',
|
||||
'src/services/appTitle.ts',
|
||||
@@ -325,6 +327,7 @@ const h5HostBridgeTests = [
|
||||
'src/services/host-bridge/hostBridge.test.ts',
|
||||
'src/services/host-bridge/nativeAppHostBridge.test.ts',
|
||||
'src/App.test.tsx',
|
||||
'src/hooks/useHostNavigationCanGoBack.test.tsx',
|
||||
'src/components/bark-battle-creation/BarkBattleResultView.test.tsx',
|
||||
'src/components/common/CreativeAudioInputPanel.test.tsx',
|
||||
'src/components/common/PublishShareModal.test.tsx',
|
||||
@@ -1227,6 +1230,11 @@ function assertWechatMiniProgramRouteParity() {
|
||||
sharedRuntimeContextQueryKey.clientType,
|
||||
sharedRuntimeContextQueryKey.clientRuntime,
|
||||
sharedRuntimeContextQueryKey.miniProgramEnv,
|
||||
sharedRuntimeContextQueryKey.hostShell,
|
||||
sharedRuntimeContextQueryKey.hostPlatform,
|
||||
sharedRuntimeContextQueryKey.hostVersion,
|
||||
sharedRuntimeContextQueryKey.bridgeVersion,
|
||||
sharedRuntimeContextQueryKey.hostCapabilities,
|
||||
],
|
||||
'preserved HostBridge runtime context query keys',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user