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

Fixing type for BrowserOnly children #5475

Merged
merged 4 commits into from
May 9, 2022

Conversation

YannBirba
Copy link
Contributor

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>.

  • Build ok
  • tests ok for my modification
  • lint ok

@netlify
Copy link

netlify bot commented May 9, 2022

Deploy Preview for redwoodjs-docs canceled.

Name Link
🔨 Latest commit a893b52
🔍 Latest deploy log https://app.netlify.com/sites/redwoodjs-docs/deploys/62795a32f1b1270008ffb1db

@jtoar jtoar added the release:fix This PR is a fix label May 9, 2022
@dac09
Copy link
Contributor

dac09 commented May 9, 2022

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?

@YannBirba
Copy link
Contributor Author

Yeah it's my bad, i deleted <any , any> and it works as well.

Copy link
Contributor

@dac09 dac09 left a 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

@dac09 dac09 enabled auto-merge (squash) May 9, 2022 18:17
@YannBirba
Copy link
Contributor Author

It's good for me

@dac09
Copy link
Contributor

dac09 commented May 9, 2022

Thank you for your contribution! 🚀🚀🚀 Happy Redwood-ing!

@dac09 dac09 merged commit 5bca039 into redwoodjs:main May 9, 2022
@jtoar jtoar added this to the next-release milestone May 9, 2022
dac09 added a commit to dac09/redwood that referenced this pull request May 10, 2022
…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)
@jtoar jtoar modified the milestones: next-release, v1.5.0 May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix This PR is a fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants