-
Notifications
You must be signed in to change notification settings - Fork 408
update return type for AuthCheck and SuspenseWithPerf to JSX.Element #162
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
Conversation
|
This passes the test suite locally - looks like 'yarn build' is failing in the CI pipeline. |
|
I also got this error when running |
| children, | ||
| requiredClaims | ||
| }: AuthCheckProps): React.ReactNode { | ||
| }: AuthCheckProps): JSX.Element { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This and the change on line 36 cause a typescript compile error because they conflict with the props declared on line 47 and 48
|
I wrapped the child/fallback in a React fragment to handle the string scenario - this is similar to what was already done for PerfCheck |
|
Thank you @seanemmer! Looks like it is working now 🔥 |

Update return type from React.ReactNode to JSX.Element
Resolves #138