Skip to content

[react-infinite-scroller] Fix tests when ReactFragment does not include {}#59671

Merged
typescript-bot merged 1 commit into
DefinitelyTyped:masterfrom
eps1lon:fix/react-node/react-infinite-scroller
Apr 5, 2022
Merged

[react-infinite-scroller] Fix tests when ReactFragment does not include {}#59671
typescript-bot merged 1 commit into
DefinitelyTyped:masterfrom
eps1lon:fix/react-node/react-infinite-scroller

Conversation

@eps1lon
Copy link
Copy Markdown
Collaborator

@eps1lon eps1lon commented Apr 3, 2022

Given the name of the element prop, the prop probably does not support a component but an element. @cvetanov Could you take a look and tell me if we should extend element to accept ComponentType or really only pass ReactNode in which case the proposed diff should fix any future issues.

We plan to remove {} from ReactFragment since it's not actually an allowed type for children of host components (e.g. <div>{{}}</div> would throw at runtime) (see #56026 for previous attempts).

This change is required to pass #56210

@eps1lon eps1lon marked this pull request as ready for review April 3, 2022 14:55
@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented Apr 3, 2022

@eps1lon Thank you for submitting this PR!

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

Because you edited one package and there were no type definition changes, I can help you merge this PR once someone else signs off on it.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ Most recent commit is approved by type definition owners or DT maintainers

All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 59671,
  "author": "eps1lon",
  "headCommitOid": "fb795a6ee8509d9cc3b863c4be3ff4ad67e554e6",
  "mergeBaseOid": "7de5a3274b57a5602670134ef0a36fd4f17fa179",
  "lastPushDate": "2022-04-03T14:45:18.000Z",
  "lastActivityDate": "2022-04-05T07:01:45.000Z",
  "mergeOfferDate": "2022-04-05T05:25:05.000Z",
  "mergeRequestDate": "2022-04-05T07:01:45.000Z",
  "mergeRequestUser": "eps1lon",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Popular",
  "pkgInfo": [
    {
      "name": "react-infinite-scroller",
      "kind": "edit",
      "files": [
        {
          "path": "types/react-infinite-scroller/react-infinite-scroller-tests.tsx",
          "kind": "test"
        }
      ],
      "owners": [
        "Lapanti",
        "psrebniak",
        "WrathZA",
        "daggerjames"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Popular"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "psrebniak",
      "date": "2022-04-05T05:24:25.000Z",
      "isMaintainer": false
    }
  ],
  "mainBotCommentID": 1086885840,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added the Popular package This PR affects a popular package (as counted by NPM download counts). label Apr 3, 2022
@typescript-bot
Copy link
Copy Markdown
Contributor

🔔 @lapanti @psrebniak @WrathZA @daggerjames — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

@typescript-bot typescript-bot added Owner Approved A listed owner of this package signed off on the pull request. Self Merge This PR can now be self-merged by the PR author or an owner labels Apr 5, 2022
@typescript-bot
Copy link
Copy Markdown
Contributor

@eps1lon: Everything looks good here. I am ready to merge this PR (at fb795a6) on your behalf whenever you think it's ready.

If you'd like that to happen, please post a comment saying:

Ready to merge

and I'll merge this PR almost instantly. Thanks for helping out! ❤️

(@lapanti, @psrebniak, @WrathZA, @daggerjames: you can do this too.)

@eps1lon
Copy link
Copy Markdown
Collaborator Author

eps1lon commented Apr 5, 2022

Ready to merge

@typescript-bot typescript-bot merged commit b92cbb3 into DefinitelyTyped:master Apr 5, 2022
@eps1lon eps1lon deleted the fix/react-node/react-infinite-scroller branch April 5, 2022 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Owner Approved A listed owner of this package signed off on the pull request. Popular package This PR affects a popular package (as counted by NPM download counts). Self Merge This PR can now be self-merged by the PR author or an owner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants