-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: legacy context usages #107
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems pretty solid, I’ll take a closer look tomorrow!
Don’t worry about it being raw, I’ll handle the types and anything. The fact that you showed me what needs to be done is more than enough! It’s my pleasure to build upon your solution. Big thank you for taking the time to help RFR
It looks like this changes the API by introducing a new location prop to both Link components. Is that a new feature? |
You're right that |
this one seems a little more robust: https://github.com/faceyspacey/redux-first-router-link/pull/113/files is there anything you'd want o to add to that PR? |
Sure, you can merge it, in my opinion. But @mungojam made a relevant observation about giving My opinion is to merge it because this risk already exist by mapping
|
I wouldn't worry about my point if you don't think it's likely to affect people. I'm not familiar enough with the library to know what all the parameters do, so it was more that I was checking if the API was intentionally changed in the PR or if that could be done in a separate release if it was an unrelated improvement |
Okay guys. Christmas time and I’m mobile. Merge this and automate release, yes or no? Do we cater for legacy or is this a breaking change deserving of a major release? |
This shouldn't break legacy code as it just uses the regular react-redux API. My vote is for merge. |
As you wish! If automated releases don’t work I’ll remotely fix that. But I know I’ve fixed most repos now |
Friendly reminder to use semantic-release commit conventions or use commitizen. |
Releasing as a feat minor bump to be safe. Don’t want the community blowing up if the next patch version automatically installs. |
🎉 This PR is included in version 2.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
My mistake, I'm not used to functional components that have state and/or prop-types and/or flow and I can see now that I look forward to using this new release and removing my horrid new-old context adaptor :) |
I was expecting #113 being merged instead of this PR, which was raw, as indicated in its first comment. I'm confused. |
I was expecting #113 too regarding the discussion (: |
Whoooops So sorry guys, the holiday season has be in worse attention span than usual. |
This is a raw PR to fix #101 . I did not take care of types, tests, or whatever.
You can test upgrading/downgrading from
react-redux@v5.1.0
/ toreact-redux@v6.0.0
with theredux-first-router
branch of this repository as a simple boilerplate and runnpm run start:client
ornpm run start:dev
ornpm run start
.