-
Notifications
You must be signed in to change notification settings - Fork 30.5k
[react-plotly.js] Add render method to Plot class #74037
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
base: master
Are you sure you want to change the base?
Conversation
This is needed to make the Plot component work with preact (where PureComponent is an abstract class)
|
@jendrikw Thank you for submitting this PR! This is a live comment that I will keep updated. 1 package in this PRCode ReviewsThis PR can be merged once it's reviewed by a DT maintainer. You can test the changes of this PR in the Playground. Status
Once every item on this list is checked, I'll ask you for permission to merge and publish the changes. InactiveThis PR has been inactive for 8 days. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 74037,
"author": "jendrikw",
"headCommitOid": "6e896146ab4a50faa4b54e7206698235bc265e87",
"mergeBaseOid": "aa31443ede06d3f9972a3b4e82104b3b33e6b33f",
"lastPushDate": "2025-11-07T09:19:22.000Z",
"lastActivityDate": "2025-11-14T10:01:43.000Z",
"hasMergeConflict": false,
"isFirstContribution": false,
"tooManyFiles": false,
"hugeChange": false,
"popularityLevel": "Popular",
"pkgInfo": [
{
"name": "react-plotly.js",
"kind": "edit",
"files": [
{
"path": "types/react-plotly.js/index.d.ts",
"kind": "definition"
}
],
"owners": [
"jonfreedman",
"gricey432",
"phuebner"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Popular"
}
],
"reviews": [
{
"type": "approved",
"reviewer": "phuebner",
"date": "2025-11-07T14:28:04.000Z",
"isMaintainer": false
}
],
"mainBotCommentID": 3501449111,
"ciResult": "pass"
} |
|
Hey @jendrikw, 😒 Your PR doesn't modify any tests, so it's hard to know what's being fixed, and your changes might regress in the future. Please consider adding tests to cover the change you're making. Including tests allows this PR to be merged by yourself and the owners of this module. This can potentially save days of time for you! |
|
🔔 @jonfreedman @gricey432 @phuebner — please review this PR in the next few days. Be sure to explicitly select |
|
⏳ Hi @jendrikw, It's been a few days since this PR was approved by phuebner and we're waiting for a DT maintainer to give a review. If you would like to short-circuit this wait, you can edit some of the test files in the package that verify how the |
|
@jendrikw can you elaborate on why this is necessary? This seems like an issue with the Preact types. |
|
In Preact, Component is defined as an abstract class with This just means that a component needs to define |
|
That’s reasonable in isolation, but it causes this exact issue in every set of component typings written for React, when Preact aims to be broadly compatible with the React ecosystem. I guess there are more function components than component classes out there these days... How long has this been the case? |
|
I understand. Let me ask the preact developers what they think. |
This is needed to make the Plot component work with preact (where PureComponent is an abstract class)
Please fill in this template.
pnpm test <package to test>.Select one of these and delete the others:
If changing an existing definition:
package.json.