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

Fix react-redux 6.0.0 new way of passing context #113

Merged
merged 4 commits into from
Dec 29, 2018

Conversation

GuillaumeCisco
Copy link
Contributor

@GuillaumeCisco GuillaumeCisco commented Dec 19, 2018

Fix #101

@ScriptedAlchemy
Copy link
Collaborator

assessing multiple PRs regarding the same fix, checking with authors of those prs if there's anything they want to review on this one

const mapState = state => ({
routesMap: selectLocationState(state).routesMap
})
const connector: Connector<OwnProps, Props> = connect(mapState)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't dispatch be mapped to props here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hum, what do you have in mind?
Do you see a case dispatch is needed?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's already used and in a Redux context, dispatching action is needed, I guess. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dispatch was not present before, is this necessary?
I wonder

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this is officially supported, ok. 👍

src/NavLink.js Outdated
@@ -37,39 +36,31 @@ type OwnProps = {

type Props = {
dispatch: Function,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line 39 could be removed, I think.

@ScriptedAlchemy
Copy link
Collaborator

If still relevant @GuillaumeCisco @cdoublev

Please merge with master and resolve conflicts, then ill merge it if the community (you guys) say yes

@ScriptedAlchemy
Copy link
Collaborator

Ill merge this if we can resolve the conflicts. Otherwise give me like 4 hours and ill do so on my machine. Again I’m really sorry i got PR's mixed up

@cdoublev
Copy link
Contributor

Sounds more efficient that I let you both handle that from your own PR/repository. I should probably have closed my PR @ScriptedAlchemy: also my fault.

@GuillaumeCisco
Copy link
Contributor Author

Thanks @cdoublev and @ScriptedAlchemy.
As we are in Christmas days, I cannot access a computer right now. I will in 2 days.
If someone can make a PR from this PR, it will be great!
We could merge it from GitHub gui :)

@ScriptedAlchemy
Copy link
Collaborator

Sure thing I'll update your pr tomorrow and merge. Tomorrow is my last day before family vacation to the mountains. No idea what wireless service is there. So I'll make sure this is merge tomorrow. Merry Christmas or happy holidays!!!

@GuillaumeCisco
Copy link
Contributor Author

Just got some time to rebase it :)
Happy Holidays :)

@ScriptedAlchemy ScriptedAlchemy merged commit d7e104f into faceyspacey:master Dec 29, 2018
@ScriptedAlchemy
Copy link
Collaborator

🎉 This PR is included in version 2.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ScriptedAlchemy
Copy link
Collaborator

Checking in here, we all good?

@cdoublev
Copy link
Contributor

cdoublev commented Jan 2, 2019

Yes, thank you both. I just updated it with react-redux: links are working correctly. 👍

@GuillaumeCisco GuillaumeCisco deleted the fix-react-redux-6 branch January 2, 2019 09:26
@ScriptedAlchemy
Copy link
Collaborator

Thanks guys. I really appreciatate it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants