-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Fixing type for BrowserOnly children #5475
Fixing type for BrowserOnly children #5475
Conversation
✅ Deploy Preview for redwoodjs-docs canceled.
|
Thanks for the PR @YannBirba - this does look like an issue, definitely - but I wonder if we can just use ReactElement without the any in the generics? |
Yeah it's my bad, i deleted <any , any> and it works as well. |
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.
Thanks @YannBirba - also made a small change as I saw a new TS error - probably didn't happen when I first wrote this. Please do confirm if its all ok for you now? Seems fine from my quick check
It's good for me |
Thank you for your contribution! 🚀🚀🚀 Happy Redwood-ing! |
…ctmode-gen * 'main' of github.com:redwoodjs/redwood: Update yarn.lock fix(deps): update graphql-tools monorepo (redwoodjs#5487) v1.3.2 Update yarn.lock fix: Run dedupe during upgrade on yarn 3 (redwoodjs#5458) Fix/ts resolvers type (redwoodjs#5437) fix(deps): update dependency graphql to v16.5.0 (redwoodjs#5488) fixed typo of roll to role (redwoodjs#5484) fix(deps): update typescript-eslint monorepo to v5.23.0 (redwoodjs#5489) chore(deps): update dependency cypress to v9.6.1 (redwoodjs#5482) chore(deps): update dependency firebase to v9.8.1 (redwoodjs#5485) fix(deps): update dependency @types/aws-lambda to v8.10.97 (redwoodjs#5486) chore(deps): update dependency @nhost/nhost-js to v1.1.10 (redwoodjs#5479) chore(deps): update dependency @nhost/hasura-auth-js to v1.1.5 (redwoodjs#5478) Fixing type for BrowserOnly children (redwoodjs#5475) fix: Run dedupe during upgrade on yarn 3 (redwoodjs#5458) Fix/ts resolvers type (redwoodjs#5437)
Changed children type to ReactElement<any, any> in BrowserOnly from BrowserUtils.
During implementation of prerender in my app, i tried to use BrowserOnly to test prerender, unfortunatly children type was set to React.Node and it doesn't worked for me.
I changed it by ReactElement<any, any>.