Update HMR logic. Refresh on server props update.

This commit is contained in:
2026-03-21 18:03:36 +01:00
parent a504046a36
commit 32056b5cb6
9 changed files with 58 additions and 8 deletions
+10
View File
@@ -210,6 +210,15 @@ export type BunextPageModuleServerReturn<T extends {
cacheExpiry?: number;
url?: BunextPageModuleServerReturnURLObject;
};
export type BunextPageProps<T extends {
[k: string]: any;
} = {
[k: string]: any;
}, Q extends {
[k: string]: any;
} = {
[k: string]: any;
}> = BunextPageModuleServerReturn<T, Q>;
export type BunextPageModuleServerReturnURLObject = URL & {};
export type BunextPageModuleServerRedirect = {
destination: string;
@@ -254,6 +263,7 @@ export type GlobalHMRControllerObject = {
controller: ReadableStreamDefaultController<string>;
page_url: string;
target_map?: BundlerCTXMap;
page_props?: any;
};
export type BunextCacheFileMeta = {
date_created: number;