Documents / Interface: FaasDataInjection<Data>

Interface: FaasDataInjection<Data>

Injects FaasData props.

Type parameters

NameType
Dataany

Table of contents

Properties

Methods

Properties

action

action: any


data

data: Data


error

error: any


loading

loading: boolean


params

params: Record<string, any>


promise

promise: Promise<Response<Data>>


setData

setData: Dispatch<SetStateAction<Data>>


setError

setError: Dispatch<any>


setLoading

setLoading: Dispatch<SetStateAction<boolean>>


setPromise

setPromise: Dispatch<SetStateAction<Promise<Response<Data>>>>

Methods

reload

reload(params?): Promise<Response<Data>>

Parameters

NameType
params?Record<string, any>

Returns

Promise<Response<Data>>