Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
No EOL
600 B
Text
18 lines
No EOL
600 B
Text
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 |