Skip to content

@epikodelabs/streamix


@epikodelabs/streamix / networking/src/public-api / useFallback

Function: useFallback()

useFallback(handler): Middleware

Defined in: projects/libraries/streamix/networking/src/lib/httpClient.ts:348

Middleware that catches errors and returns a fallback context instead of throwing.

Parameters

handler

(error, context) => Context

Returns

Middleware

Released under the GNU AGPL v3 or later.