You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
508 B

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