Skip to content

preact/debug: Add component stack to prop type validation error, do not pass ref to prop-types validation (fixes mui incompatbility)#2685

Merged
sventschui merged 6 commits intomasterfrom
add-component-stack-to-prop-type-error
Aug 7, 2020
Merged

preact/debug: Add component stack to prop type validation error, do not pass ref to prop-types validation (fixes mui incompatbility)#2685
sventschui merged 6 commits intomasterfrom
add-component-stack-to-prop-type-error

Conversation

@sventschui
Copy link
Copy Markdown
Member

Add the component stack to the prop types validation error message to help debug #2682

Not sure that inline arrow function is the best solution but I guess it is preferable over .bind(null, vnode)

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 7, 2020

Size Change: +165 B (0%)

Total Size: 40.5 kB

Filename Size Change
compat/dist/compat.module.js 3.28 kB +1 B
compat/dist/compat.umd.js 3.31 kB +1 B
debug/dist/debug.js 3.06 kB +55 B (1%)
debug/dist/debug.module.js 3.06 kB +55 B (1%)
debug/dist/debug.umd.js 3.15 kB +53 B (1%)
ℹ️ View Unchanged
Filename Size Change
compat/dist/compat.js 3.25 kB 0 B
devtools/dist/devtools.js 185 B 0 B
devtools/dist/devtools.module.js 195 B 0 B
devtools/dist/devtools.umd.js 260 B 0 B
dist/preact.js 3.97 kB 0 B
dist/preact.min.js 3.99 kB 0 B
dist/preact.module.js 3.98 kB 0 B
dist/preact.umd.js 4.03 kB 0 B
hooks/dist/hooks.js 1.1 kB 0 B
hooks/dist/hooks.module.js 1.12 kB 0 B
hooks/dist/hooks.umd.js 1.18 kB 0 B
test-utils/dist/testUtils.js 437 B 0 B
test-utils/dist/testUtils.module.js 439 B 0 B
test-utils/dist/testUtils.umd.js 515 B 0 B

compressed-size-action

@coveralls
Copy link
Copy Markdown

coveralls commented Aug 7, 2020

Coverage Status

Coverage increased (+0.01%) to 99.01% when pulling f98b1c3 on add-component-stack-to-prop-type-error into 9eb0de6 on master.

@sventschui sventschui changed the title preact/debug: Add component stack to prop type validation error preact/debug: Add component stack to prop type validation error, do not pass ref to prop-types validation (fixes mui incompatbility) Aug 7, 2020
Comment thread debug/src/debug.js
Copy link
Copy Markdown
Member

@marvinhagemeister marvinhagemeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love this! We're only missing the _forwarded property in mangle.json and then it's ready to go 🙌 🚀

@marvinhagemeister marvinhagemeister dismissed their stale review August 7, 2020 13:01

oops wrong button

Copy link
Copy Markdown
Member

@marvinhagemeister marvinhagemeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet, thank you so much for the PR 🙌 🥇

@sventschui sventschui merged commit c2c9b94 into master Aug 7, 2020
@sventschui sventschui deleted the add-component-stack-to-prop-type-error branch August 7, 2020 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants