SWRConfig fetcher prop doesn't exist/work
Hi, I'm trying to configure SWRConfig to use "global" fetch function in all hooks but it doesn't seem to work. Also config interface doesn't have a value called fetcher, like it's shown in the docs
@davidalekna I don't know about why the config interface doesn't have a value called fetcher, but in your example on codesandbox you are using SWRConfig wrong, since SWRConfig is a Context.Provider, the prop that you should pass should be value not values
<SWRConfig
value={{
fetcher: apiFetcher
}}
>
<SomeComponent />
</SWRConfig>
@davidalekna @cristianbgp https://github.com/zeit/swr/blob/master/src/types.ts#L18 there is the fetcher in the config interface, https://github.com/zeit/swr/blob/master/src/config.ts#L55 that is the default config
@cristianbgp damn how did I miss that values vs value 😅
thanks for clarification guys!