This repository has been archived on 2025-07-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
eternos/frontend/style/node_modules/next/dist/esm/client/app-call-server.js
2025-01-11 09:54:09 +03:00

17 lines
508 B
JavaScript

import { getServerActionDispatcher } from "./components/app-router";
export async function callServer(actionId, actionArgs) {
const actionDispatcher = getServerActionDispatcher();
if (!actionDispatcher) {
throw new Error("Invariant: missing action dispatcher.");
}
return new Promise((resolve, reject)=>{
actionDispatcher({
actionId,
actionArgs,
resolve,
reject
});
});
}
//# sourceMappingURL=app-call-server.js.map