This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type {ActionResult} from "@sveltejs/kit"; | |
import {applyAction, deserialize} from "$app/forms"; | |
export const fetchAction = async <Input, Output>(actionPath: string, data: Input): Promise<Output> => { | |
const result: ActionResult = await fetch(actionPath, { | |
method: 'POST', | |
headers: { | |
'x-sveltekit-action': 'true' | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$listTable = new ListTable_SubscribersAjax( 'my_fancy_table ); |