Skip to content

Server Handler

Flyter ships with a simple server handler which performs an async request on submit. This can be easily overriden using the onSubmit callback, but these options allow you to configure how the request is sent if you keep the default handler.

keytypedescriptiondefault value
server.urlstring*url to which submit datanull
server.methodstring*which method to use (GET, POST...)'POST'
server.queryParamsobject*some additional data to pass to request bodynull
server.resultFormatter(data: any, value: any) => anyCalled after server response, can be used to format received value before forwarding it to flytergiven value