Skip to content
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

fix: pass null fetcher to middleware #2240

Merged
merged 2 commits into from Nov 28, 2022
Merged

Conversation

koba04
Copy link
Collaborator

@koba04 koba04 commented Nov 12, 2022

Fixes #2217

null is a valid type of fetcher argument, but the null fetcher becomes undefined in middleware. This is an unexpected behavior for middleware authors, so I've fixed it.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Nov 12, 2022

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 5c2c9cf:

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

@Dragate
Copy link

Dragate commented Nov 12, 2022

Does this also resolve #2155 ?

@koba04
Copy link
Collaborator Author

koba04 commented Nov 13, 2022

@Dragate No it doesn't. But I'll consider the issue. Thank you!

@shuding shuding merged commit 0e3b840 into vercel:main Nov 28, 2022
@koba04 koba04 deleted the fix-null-fetcher branch November 29, 2022 15:59
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.

When providing fetcher: null , middleware is defaulting it to undefined
4 participants