Update HMR logic. Refresh on server props update.
This commit is contained in:
Vendored
+10
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user