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

Fix incompatibility with latest react-router-dom #891

Closed
wants to merge 1 commit into from
Closed

Fix incompatibility with latest react-router-dom #891

wants to merge 1 commit into from

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
@gordongrace gordongrace added this to ✏️ Sprint backlog in Design System via automation Nov 25, 2019
@anthonymckerron anthonymckerron removed their assignment Dec 19, 2019
@qfz qfz closed this Mar 2, 2020
Design System automation moved this from ✏️ Sprint backlog to ✨ Done Mar 2, 2020
@qfz qfz reopened this Mar 4, 2020
Design System automation moved this from ✨ Done to ✏️ Sprint backlog 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
Design System automation moved this from ✏️ Sprint backlog to ✨ Done Apr 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Design System
  
✨ Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants