Type alias: BeforeGetRequestHandler<TUserId, TGridId>
type BeforeGetRequestHandler<TUserId, TGridId>: (request, body) => Promise<Request>;
Description
Callback type to change the Request 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 parameter | Description |
---|---|
TUserId | The type of the user identifier. |
TGridId | The type of the grid identifier. |
Parameters
Parameter | Type |
---|---|
request | Request |
body | GetGridStateRequest <TUserId , TGridId > |