MCPcopy
hub / github.com/simoneb/axios-hooks / configure

Function configure

src/index.js:77–89  ·  view source on GitHub ↗
(options = {})

Source from the content-addressed store, hash-verified

75 }
76
77 function configure(options = {}) {
78 if (options.axios !== undefined) {
79 axiosInstance = options.axios
80 }
81
82 if (options.cache !== undefined) {
83 cache = options.cache
84 }
85
86 if (options.defaultOptions !== undefined) {
87 defaultOptions = { ...DEFAULT_OPTIONS, ...options.defaultOptions }
88 }
89 }
90
91 resetConfigure()
92 configure(configureOptions)

Callers 2

standardTestsFunction · 0.90
makeUseAxiosFunction · 0.85

Calls

no outgoing calls

Tested by 1

standardTestsFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…