Skip to content
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

Fix / better typing for history location #1794

Merged
merged 5 commits into from Jan 13, 2022

Conversation

rezrah
Copy link
Contributor

@rezrah rezrah commented Jan 13, 2022

Previously added Location | Pathname as a union type for the to Prop.

Turns out that history at v5 conveniently exports an explicit To that feels more relevant (and easier to reason about) for this prop, so I'm following up on the previous change by swapping out for this instead.

Screenshots

Screenshot 2022-01-13 at 18 11 22

Tested canary in memex ✅

Screenshot 2022-01-13 at 18 13 39

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 13, 2022

🦋 Changeset detected

Latest commit: 46ee3d6

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

@github-actions
Copy link
Contributor

github-actions bot commented Jan 13, 2022

size-limit report 📦

Path Size
dist/browser.esm.js 61.25 KB (0%)
dist/browser.umd.js 61.63 KB (0%)

@rezrah rezrah marked this pull request as ready for review January 13, 2022 18:15
@rezrah rezrah requested review from a team and pksjce January 13, 2022 18: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.

@rezrah rezrah merged commit a8c427d into main Jan 13, 2022
@rezrah rezrah deleted the fix/better-typing-for-history-location branch January 13, 2022 18:32
@primer-css primer-css mentioned this pull request Jan 13, 2022
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.

None yet

2 participants