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

dirty fix #19

Merged
merged 1 commit into from
Jun 18, 2023
Merged

dirty fix #19

merged 1 commit into from
Jun 18, 2023

Conversation

peatfaerie
Copy link
Contributor

quick and dirty fix for recent changes in the strava route builder (just to give an idea what's changed); I can't do it properly at the moment but I hope this will help somehow anyway

@liskin liskin linked an issue Jun 11, 2023 that may be closed by this pull request
@liskin
Copy link
Owner

liskin commented Jun 11, 2023

Did you have an idea of what "doing it properly" would look like? After looking at your change I'm thinking that we can just always try both of reactInternalInstance/reactFiber and both of mapFromReactInternalInstance/mapFromReactFiber, rather than only doing mapFromReactFiber when reactFiber finds something. It's still a hack probably but doesn't seem harmful. I can't really be bothered studying what React actually does in different versions.

Anyway, thanks a lot for figuring this out! ❤
I'll try to take a closer look next week (expecting to be somewhat less busy but no promises really).

@peatfaerie
Copy link
Contributor Author

It seems that Strava updated its version of React so I believe it is safe to assume that reactInternalInstance is gone and sticking to reactFiber will suffice. I cleaned up the fix a bit.

@liskin liskin merged commit 1e6a1dc into liskin:master Jun 18, 2023
@peatfaerie peatfaerie deleted the patch-1 branch June 21, 2023 07:32
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.

Extension doesn't showup anymore in routeplanner
2 participants