Skip to content
This repository was archived by the owner on Aug 26, 2021. It is now read-only.

Conversation

@qfz
Copy link

@qfz qfz commented Nov 21, 2019

The AUlinkList component is not compatible with the latest react-router-dom at the moment because react-router-dom uses React.forwardRef to create their Link component. The returned component from React.forwardRef tests false with typeof ... === 'function', so link doesn't get passed to the to prop.

As far as I understand, AUlinkList can only use either "a" or Link, so it can simply set link to to when LinkComponent is not "a".

Alternatively it can check whether LinkComponent is either Object or function, but I don't think it's necessary given how AUlinkList is used.

@qfz qfz changed the title Fix incompatibility issue with latest react-router-dom Fix incompatibility with latest react-router-dom Nov 21, 2019
@anthonymckerron anthonymckerron removed their assignment Dec 19, 2019
@qfz qfz closed this Mar 2, 2020
@qfz qfz reopened this Mar 4, 2020
@svict4
Copy link

svict4 commented Jun 12, 2020

Ah sorry @qfz, I did not see this when I created: #907

@qfz qfz closed this Apr 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants