Type alias: BeforeGetRequestHandler<TUserId, TGridId>

type BeforeGetRequestHandler<TUserId, TGridId>: (request, body) => Promise<Request>;

Description

Callback type to change the Requestopen in new window object before it is sent to the server from the built-in server side storage service. This is useful when you need to map the GetGridStateRequest to a different data contract or alter the HTTP verb/headers.

Type parameters

Type parameterDescription
TUserIdThe type of the user identifier.
TGridIdThe type of the grid identifier.

Parameters

ParameterType
requestRequestopen in new window
bodyGetGridStateRequest<TUserId, TGridId>

Returns

Promiseopen in new window<Requestopen in new window>