Skip to content

Stop rendering activeClassName when there is no to prop is passed for react-router - #3061

Merged
broccolinisoup merged 2 commits into
mainfrom
bs/next-js-warning
Mar 22, 2023
Merged

Stop rendering activeClassName when there is no to prop is passed for react-router#3061
broccolinisoup merged 2 commits into
mainfrom
bs/next-js-warning

Conversation

@broccolinisoup

@broccolinisoupbroccolinisoup commented Mar 22, 2023

Copy link
Copy Markdown
Member

As described in this issue, I realised that the same behaviour occurs in multiple components.

Not rendering the activeClassName when there is no to prop seems to resolve the issue.

Closes#3060
Closes#2847

Screenshots

No visual change

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.

@broccolinisoupbroccolinisoup added the skip changeset This change does not need a changelog label Mar 22, 2023
@broccolinisoup
broccolinisoup requested review from a team and josepmartinsMarch 22, 2023 06:35
@changeset-bot

changeset-botBot commented Mar 22, 2023

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: f6b1096

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

This PR includes changesets to release 1 package
NameType
@primer/reactPatch

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

@github-actions

github-actionsBot commented Mar 22, 2023

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize
dist/browser.esm.js95.04 KB (+0.01% 🔺)
dist/browser.umd.js95.58 KB (+0.01% 🔺)

@broccolinisoup
broccolinisoup temporarily deployed to github-pages March 22, 2023 06:41 — with GitHub Actions Inactive
@github-actions
github-actionsBot temporarily deployed to storybook-preview-3061 March 22, 2023 06:42 Inactive
@broccolinisoupbroccolinisoup removed the skip changeset This change does not need a changelog label Mar 22, 2023
@broccolinisoupbroccolinisoup changed the title do not render the activeclassname when there is no prop 'to'Stop rendering activeClassName when there is no to prop is passed for react-routerMar 22, 2023
@github-actions
github-actionsBottemporarily deployed to storybook-preview-3061 March 22, 2023 07:07 Inactive
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants

@broccolinisoup@joshblack