Documents / @faasjs/ant-design / UseFaasStreamOptions
Type Alias: UseFaasStreamOptions
UseFaasStreamOptions =
object
Options that customize the useFaasStream request lifecycle.
Stream consumers can control params, skip logic, debounce timing, polling, and base URL overrides the same way useFaas does.
Properties
baseUrl?
optionalbaseUrl?:BaseUrl
Base URL override used for this stream request lifecycle.
data?
optionaldata?:string
Controlled stream text used instead of internal hook state.
debounce?
optionaldebounce?:number
Milliseconds to wait before opening the latest stream request.
params?
optionalparams?:Record<string,any>
Controlled params override sent with the request without mutating local params state.
polling?
optionalpolling?:number|false
Milliseconds to wait after each completed stream before refreshing in the background.
setData?
optionalsetData?:React.Dispatch<React.SetStateAction<string>>
Controlled setter paired with data.
skip?
optionalskip?:boolean| ((params) =>boolean)
Boolean or predicate that suppresses the automatic stream request.