Persist Request accorss hydration refreshes
This commit is contained in:
+4
-1
@@ -14,11 +14,14 @@ export default async function serverPostBuildFn() {
|
||||
continue;
|
||||
}
|
||||
const target_artifact = global.BUNDLER_CTX_MAP[controller.target_map.local_path];
|
||||
const mock_req = new Request(controller.page_url);
|
||||
const mock_req = target_artifact.req
|
||||
? target_artifact.req.clone()
|
||||
: new Request(controller.page_url);
|
||||
const { serverRes } = global.IS_SERVER_COMPONENT
|
||||
? await grabPageComponent({
|
||||
req: mock_req,
|
||||
return_server_res_only: true,
|
||||
is_hydration: true,
|
||||
})
|
||||
: {};
|
||||
const final_artifact = {
|
||||
|
||||
Reference in New Issue
Block a user