mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
114 lines
6.1 KiB
TypeScript
114 lines
6.1 KiB
TypeScript
/* __next_internal_action_entry_do_not_use__ {"803128060c414d59f8552e4788b846c0d2b7f74743":{"name":"$$RSC_SERVER_CACHE_0"},"80951c375b4a6a6e89d67b743ec5808127cfde405d":{"name":"$$RSC_SERVER_CACHE_1"},"ff1acff246876a467753785a92d1f95ac6fe32c9b9":{"name":"Other"},"ff27fadf3eeb97c777cea9f14a407b5c0b42ac65bb":{"name":"aliased"},"ff438bb59117ff1af890c80ca3e39d9e888fc93033":{"name":"wrapped"},"ff84effee663e5ce4e0948b55df129a8df904c67aa":{"name":"Sync"},"ff8fa22f08e492db15701f58a1458cc4ebf782f855":{"name":"getData"},"ff980f8c891ae27674b86a4804d306bdb3065c2e4f":{"name":"getStuff"},"ffc18c215a6b7cdc64bf709f3a714ffdef1bf9651d":{"name":"default"}} */ import { registerServerReference } from "private-next-rsc-server-reference";
|
|
import { cache as $$cache__ } from "private-next-rsc-cache-wrapper";
|
|
import { cache as $$reactCache__ } from "react";
|
|
// @ts-ignore
|
|
import { getStuff, wrap, type Stuff } from './foo';
|
|
export { type Data } from './data';
|
|
import { getData } from './data';
|
|
const $$RSC_SERVER_CACHE_0_INNER = async function getCachedData() {
|
|
// This is not using the wrapped version of getStuff, as we're only
|
|
// runtime-wrapping what flows out of the module, not into it. Would one
|
|
// expect this to be cached?
|
|
return getStuff();
|
|
};
|
|
export var $$RSC_SERVER_CACHE_0 = $$reactCache__(function getCachedData() {
|
|
return $$cache__("default", "803128060c414d59f8552e4788b846c0d2b7f74743", 0, $$RSC_SERVER_CACHE_0_INNER, []);
|
|
});
|
|
registerServerReference($$RSC_SERVER_CACHE_0, "803128060c414d59f8552e4788b846c0d2b7f74743", null);
|
|
Object["defineProperty"]($$RSC_SERVER_CACHE_0, "name", {
|
|
value: "getCachedData"
|
|
});
|
|
export const getCachedData = $$RSC_SERVER_CACHE_0;
|
|
const aliased = getStuff;
|
|
const Layout = wrap(async ()=><div>Layout</div>);
|
|
const Other = wrap(async ()=><div>Other</div>);
|
|
const Sync = wrap(()=><div>Sync</div>);
|
|
const wrapped = wrap(async ()=>'foo', async ()=>'bar', async ()=>async ()=>'baz', ()=>'sync');
|
|
export { staticallyKnownFunction };
|
|
const $$RSC_SERVER_CACHE_1_INNER = async function staticallyKnownFunction() {};
|
|
export var $$RSC_SERVER_CACHE_1 = $$reactCache__(function staticallyKnownFunction() {
|
|
return $$cache__("default", "80951c375b4a6a6e89d67b743ec5808127cfde405d", 0, $$RSC_SERVER_CACHE_1_INNER, []);
|
|
});
|
|
registerServerReference($$RSC_SERVER_CACHE_1, "80951c375b4a6a6e89d67b743ec5808127cfde405d", null);
|
|
Object["defineProperty"]($$RSC_SERVER_CACHE_1, "name", {
|
|
value: "staticallyKnownFunction"
|
|
});
|
|
var staticallyKnownFunction = $$RSC_SERVER_CACHE_1;
|
|
let $$RSC_SERVER_CACHE_getData = getData;
|
|
if (typeof getData === "function") {
|
|
$$RSC_SERVER_CACHE_getData = $$reactCache__(function() {
|
|
return $$cache__("default", "ff8fa22f08e492db15701f58a1458cc4ebf782f855", 0, getData, Array.prototype.slice.call(arguments));
|
|
});
|
|
registerServerReference($$RSC_SERVER_CACHE_getData, "ff8fa22f08e492db15701f58a1458cc4ebf782f855", null);
|
|
Object["defineProperty"]($$RSC_SERVER_CACHE_getData, "name", {
|
|
value: "getData"
|
|
});
|
|
}
|
|
export { $$RSC_SERVER_CACHE_getData as getData };
|
|
let $$RSC_SERVER_CACHE_aliased = aliased;
|
|
if (typeof aliased === "function") {
|
|
$$RSC_SERVER_CACHE_aliased = $$reactCache__(function() {
|
|
return $$cache__("default", "ff27fadf3eeb97c777cea9f14a407b5c0b42ac65bb", 0, aliased, Array.prototype.slice.call(arguments));
|
|
});
|
|
registerServerReference($$RSC_SERVER_CACHE_aliased, "ff27fadf3eeb97c777cea9f14a407b5c0b42ac65bb", null);
|
|
Object["defineProperty"]($$RSC_SERVER_CACHE_aliased, "name", {
|
|
value: "aliased"
|
|
});
|
|
}
|
|
export { $$RSC_SERVER_CACHE_aliased as aliased };
|
|
let $$RSC_SERVER_CACHE_Sync = Sync;
|
|
if (typeof Sync === "function") {
|
|
$$RSC_SERVER_CACHE_Sync = $$reactCache__(function() {
|
|
return $$cache__("default", "ff84effee663e5ce4e0948b55df129a8df904c67aa", 0, Sync, Array.prototype.slice.call(arguments));
|
|
});
|
|
registerServerReference($$RSC_SERVER_CACHE_Sync, "ff84effee663e5ce4e0948b55df129a8df904c67aa", null);
|
|
Object["defineProperty"]($$RSC_SERVER_CACHE_Sync, "name", {
|
|
value: "Sync"
|
|
});
|
|
}
|
|
export { $$RSC_SERVER_CACHE_Sync as Sync };
|
|
let $$RSC_SERVER_CACHE_wrapped = wrapped;
|
|
if (typeof wrapped === "function") {
|
|
$$RSC_SERVER_CACHE_wrapped = $$reactCache__(function() {
|
|
return $$cache__("default", "ff438bb59117ff1af890c80ca3e39d9e888fc93033", 0, wrapped, Array.prototype.slice.call(arguments));
|
|
});
|
|
registerServerReference($$RSC_SERVER_CACHE_wrapped, "ff438bb59117ff1af890c80ca3e39d9e888fc93033", null);
|
|
Object["defineProperty"]($$RSC_SERVER_CACHE_wrapped, "name", {
|
|
value: "wrapped"
|
|
});
|
|
}
|
|
export { $$RSC_SERVER_CACHE_wrapped as wrapped };
|
|
let $$RSC_SERVER_CACHE_default = Layout;
|
|
if (typeof Layout === "function") {
|
|
$$RSC_SERVER_CACHE_default = $$reactCache__(function() {
|
|
return $$cache__("default", "ffc18c215a6b7cdc64bf709f3a714ffdef1bf9651d", 0, Layout, Array.prototype.slice.call(arguments));
|
|
});
|
|
registerServerReference($$RSC_SERVER_CACHE_default, "ffc18c215a6b7cdc64bf709f3a714ffdef1bf9651d", null);
|
|
Object["defineProperty"]($$RSC_SERVER_CACHE_default, "name", {
|
|
value: "Layout"
|
|
});
|
|
}
|
|
export default $$RSC_SERVER_CACHE_default;
|
|
let $$RSC_SERVER_CACHE_Other = Other;
|
|
if (typeof Other === "function") {
|
|
$$RSC_SERVER_CACHE_Other = $$reactCache__(function() {
|
|
return $$cache__("default", "ff1acff246876a467753785a92d1f95ac6fe32c9b9", 0, Other, Array.prototype.slice.call(arguments));
|
|
});
|
|
registerServerReference($$RSC_SERVER_CACHE_Other, "ff1acff246876a467753785a92d1f95ac6fe32c9b9", null);
|
|
Object["defineProperty"]($$RSC_SERVER_CACHE_Other, "name", {
|
|
value: "Other"
|
|
});
|
|
}
|
|
export { $$RSC_SERVER_CACHE_Other as Other };
|
|
let $$RSC_SERVER_CACHE_getStuff = getStuff;
|
|
if (typeof getStuff === "function") {
|
|
$$RSC_SERVER_CACHE_getStuff = $$reactCache__(function() {
|
|
return $$cache__("default", "ff980f8c891ae27674b86a4804d306bdb3065c2e4f", 0, getStuff, Array.prototype.slice.call(arguments));
|
|
});
|
|
registerServerReference($$RSC_SERVER_CACHE_getStuff, "ff980f8c891ae27674b86a4804d306bdb3065c2e4f", null);
|
|
Object["defineProperty"]($$RSC_SERVER_CACHE_getStuff, "name", {
|
|
value: "getStuff"
|
|
});
|
|
}
|
|
export { $$RSC_SERVER_CACHE_getStuff as getStuff };
|