Skip to main content
Version: v7.0.0

useProvider

Hook to allow reading current context config


Import
import { useProvider } from "@hyper-fetch/react"

Parameters

useProvider()

Returns

type ProviderValueType = {
config: ProviderOptionsType;
setConfig: (newConfig: ProviderOptionsType) => void;
}
useProvider
NameTypeDescription
config
ProviderOptionsType
setConfig
(newConfig: ProviderOptionsType) => void
React
On this page