Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
18
node_modules/next/dist/esm/client/app-call-server.js
generated
vendored
Normal file
18
node_modules/next/dist/esm/client/app-call-server.js
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { startTransition } from 'react';
|
||||
import { ACTION_SERVER_ACTION } from './components/router-reducer/router-reducer-types';
|
||||
import { dispatchAppRouterAction } from './components/use-action-queue';
|
||||
export async function callServer(actionId, actionArgs) {
|
||||
return new Promise((resolve, reject)=>{
|
||||
startTransition(()=>{
|
||||
dispatchAppRouterAction({
|
||||
type: ACTION_SERVER_ACTION,
|
||||
actionId,
|
||||
actionArgs,
|
||||
resolve,
|
||||
reject
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
//# sourceMappingURL=app-call-server.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue