Skip to content
This repository was archived by the owner on Jan 10, 2025. It is now read-only.

Reexport hooks from react-router-dom#1646

Merged
BPScott merged 1 commit intomasterfrom
router-extra-reexports
Oct 7, 2020
Merged

Reexport hooks from react-router-dom#1646
BPScott merged 1 commit intomasterfrom
router-extra-reexports

Conversation

@BPScott
Copy link
Member

@BPScott BPScott commented Oct 7, 2020

Description

React-router provides a set of 4 hooks to access its info if you don't want to go down the HOC withRouter approach. So consumers don't need to import from a transitive dependency, let's expose them here.

This bumps the minimum of react-router-dom from v5.0.0 to v5.1.0 as that is when the hooks were initroduced.

Type of change

  • @shopify/react-router Minor: New feature (non-breaking change which adds functionality)

Checklist

  • I have added a changelog entry, prefixed by the type of change noted above (Documentation fix and Test update does not need a changelog as we do not publish new version)

@BPScott BPScott force-pushed the router-extra-reexports branch from 97888f5 to 160382c Compare October 7, 2020 15:36
@BPScott BPScott merged commit 1b67697 into master Oct 7, 2020
@BPScott BPScott deleted the router-extra-reexports branch October 7, 2020 17:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants