Skip to content

Update default fetcher documentation in README.md #891

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 12, 2021
Merged

Update default fetcher documentation in README.md #891

merged 1 commit into from
Jan 12, 2021

Conversation

mcamis
Copy link
Contributor

@mcamis mcamis commented Jan 11, 2021

Ran into issues with this when using SWR for local state sharing. It seems that the default value for the fetcher is actually window.fetch and not undefined:
https://github.com/vercel/swr/blob/master/src/config.ts#L71

Ran into issues with this when using SWR for local state sharing. It seems that the default value for the fetcher is actually `window.fetch` and not `undefined`:
https://github.com/vercel/swr/blob/00c5847ce6e95902920933aa1d49c7143f8ce4ba/src/config.ts#L71
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit f1dacb5:

Sandbox Source
SWR-Basic Configuration
SWR-States Configuration
SWR-Infinite Configuration

@shuding shuding merged commit 3121592 into vercel:master Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants