Skip to content

[cavy] Ref callback is called with an instance not the React node#56035

Merged
gabritto merged 1 commit into
DefinitelyTyped:masterfrom
eps1lon:fix/cavy/ReactNode-object-like
Oct 7, 2021
Merged

[cavy] Ref callback is called with an instance not the React node#56035
gabritto merged 1 commit into
DefinitelyTyped:masterfrom
eps1lon:fix/cavy/ReactNode-object-like

Conversation

@eps1lon
Copy link
Copy Markdown
Collaborator

@eps1lon eps1lon commented Sep 28, 2021

Revealed by #56026
Basically just replaces the custom RefCallback with the built-in type from @types/react. I doubt the callback actually provided a ReactNode. The previous behavior probably only worked because ReactNode includes {}.

Please fill in this template.

@eps1lon eps1lon marked this pull request as ready for review September 28, 2021 18:56
@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented Sep 28, 2021

@eps1lon Thank you for submitting this PR!

This is a live comment which I will keep updated.

1 package in this PR

Code Reviews

This PR can be merged once it's reviewed by a DT maintainer.

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

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • 🕐 Only a DT maintainer can approve changes without tests

Once every item on this list is checked, I'll ask you for permission to merge and publish the changes.

Inactive

This PR has been inactive for 8 days.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 56035,
  "author": "eps1lon",
  "headCommitOid": "fd3987dcd4f2bc2cd9247204f7f29aa5308a3ff1",
  "lastPushDate": "2021-09-28T18:49:25.000Z",
  "lastActivityDate": "2021-09-28T18:56:19.000Z",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Well-liked by everyone",
  "pkgInfo": [
    {
      "name": "cavy",
      "kind": "edit",
      "files": [
        {
          "path": "types/cavy/index.d.ts",
          "kind": "definition"
        }
      ],
      "owners": [
        "tyler-hoffman",
        "AbigailMcP"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    }
  ],
  "reviews": [],
  "mainBotCommentID": 929536100,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added the Untested Change This PR does not touch tests label Sep 28, 2021
@typescript-bot
Copy link
Copy Markdown
Contributor

🔔 @tyler-hoffman @AbigailMcP — 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.

@gabritto gabritto merged commit 0aabae6 into DefinitelyTyped:master Oct 7, 2021
@gabritto
Copy link
Copy Markdown
Contributor

gabritto commented Oct 7, 2021

thanks! 🐹

@eps1lon eps1lon deleted the fix/cavy/ReactNode-object-like branch October 7, 2021 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Untested Change This PR does not touch tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants