silverwolf-x/project / packages /next /src /client /app-call-server.ts
silverwolf-x's picture
download
raw
507 Bytes
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: string, actionArgs: any[]) {
return new Promise((resolve, reject) => {
startTransition(() => {
dispatchAppRouterAction({
type: ACTION_SERVER_ACTION,
actionId,
actionArgs,
resolve,
reject,
})
})
})
}

Xet Storage Details

Size:
507 Bytes
·
Xet hash:
c48575d3b0a1d6eac904d846eed606852bac6e3c688d1f41f9d83fd0af1e6226

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.