Skip to content

Conversation

@manuelpuyol
Copy link
Contributor

@manuelpuyol manuelpuyol commented Jan 10, 2023

I'm updating all non-deprecated components that use defaultProps to stop using it and using function defaults instead.
As described in the issue below, defaultProps is going to be deprecated so it'd be nice to be clear of it before the new React version is released.

Closes #2758

Screenshots

Please provide before/after screenshots for any visual changes

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.

@changeset-bot
Copy link

changeset-bot bot commented Jan 10, 2023

🦋 Changeset detected

Latest commit: ad06caa

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@manuelpuyol manuelpuyol temporarily deployed to github-pages January 10, 2023 17:27 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-2759 January 10, 2023 17:30 Inactive
@manuelpuyol manuelpuyol temporarily deployed to github-pages January 10, 2023 17:33 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-2759 January 10, 2023 17:34 Inactive
@manuelpuyol manuelpuyol temporarily deployed to github-pages January 10, 2023 18:11 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-2759 January 10, 2023 18:12 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-2759 January 12, 2023 16:55 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-2759 January 12, 2023 16:59 Inactive
@manuelpuyol manuelpuyol temporarily deployed to github-pages January 12, 2023 17:02 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-2759 January 12, 2023 17:02 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Jan 12, 2023

size-limit report 📦

Path Size
dist/browser.esm.js 88.96 KB (+0.04% 🔺)
dist/browser.umd.js 89.56 KB (+0.03% 🔺)

@manuelpuyol manuelpuyol temporarily deployed to github-pages January 12, 2023 17:11 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-2759 January 12, 2023 17:12 Inactive
@manuelpuyol manuelpuyol temporarily deployed to github-pages January 12, 2023 17:40 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-2759 January 12, 2023 17:41 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-2759 January 12, 2023 21:00 Inactive
@manuelpuyol manuelpuyol temporarily deployed to github-pages January 12, 2023 22:12 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-2759 January 12, 2023 22:12 Inactive
@manuelpuyol manuelpuyol marked this pull request as ready for review January 12, 2023 22:21
@manuelpuyol manuelpuyol requested review from a team and JoshBowdenConcepts January 12, 2023 22:21
@joshblack joshblack added the 💓collab a vibrant hub of collaboration label Jan 18, 2023
@joshblack joshblack requested review from broccolinisoup and colebemis and removed request for JoshBowdenConcepts January 18, 2023 17:15
Copy link
Contributor

@colebemis colebemis left a comment

Choose a reason for hiding this comment

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

🚀

Copy link
Member

@broccolinisoup broccolinisoup left a comment

Choose a reason for hiding this comment

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

@manuelpuyol manuelpuyol enabled auto-merge (squash) January 23, 2023 16:32
@manuelpuyol manuelpuyol disabled auto-merge January 23, 2023 16:32
@manuelpuyol manuelpuyol enabled auto-merge (squash) January 23, 2023 16:32
@colebemis colebemis temporarily deployed to github-pages January 23, 2023 17:00 — with GitHub Actions Inactive
@github-actions github-actions bot requested a deployment to storybook-preview-2759 January 23, 2023 17:02 Abandoned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💓collab a vibrant hub of collaboration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor components to stop using defaultProps

5 participants