Global Option useRequestProvider v1.6.1
🌍 useRequestProvider
Global configuration of useRequest
based on Provider implementation.
After using useRequestProvider
to inject configuration, using useRequest
in its subcomponents will share this configuration.
API
import { useRequestProvider } from 'vue-hooks-plus'
useRequestProvider({ ...options })
import { useRequestProvider } from 'vue-hooks-plus'
useRequestProvider({ ...options })