Server functions / Integration

getServerFunctionInvocation

Returns the identity of the server function that is currently executing.


Import

import { getServerFunctionInvocation } from "@solidjs/web/server-functions";

Type signature

function getServerFunctionInvocation(): ServerFunctionInvocation | undefined;

ServerFunctionInvocation

Identity of the currently executing server function call — see the server entry. Named here so isomorphic code can import the type from either entry.

interface ServerFunctionInvocation {
id: string;
}

id

  • Type: string
Last updated: 9/27/26, 8:11 AMEdit this pageReport an issue with this page