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

SWRConfig doesn't have children attribute #1914

Closed
Qrymy opened this issue Apr 9, 2022 · 1 comment
Closed

SWRConfig doesn't have children attribute #1914

Qrymy opened this issue Apr 9, 2022 · 1 comment

Comments

@Qrymy
Copy link

Qrymy commented Apr 9, 2022

Bug report

  • @types/react v18~, FC doesn't have implicit children attribute.

Description / Observed Behavior

  • If SWRConfig has children, an error is thrown.

Repro Steps / Code Example

<SWRConfig>
  <div /> // An error occured.
</SWRConfig>

Additional Context

SWR version: v1.2.2
Add any other context about the problem here.

@Qrymy
Copy link
Author

Qrymy commented Apr 9, 2022

#1913

@Qrymy Qrymy closed this as completed Apr 9, 2022
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 a pull request may close this issue.

1 participant