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

(feat): support react 16.6 #1062

Merged
merged 10 commits into from Oct 25, 2018

Conversation

JoviDeCroock
Copy link
Contributor

Tests are provided aswell, i hope i did this the right way :)

@JoviDeCroock
Copy link
Contributor Author

Wanted to include a react 16.6 test but i see that does not work :/

@reduxjs reduxjs deleted a comment from netlify bot Oct 25, 2018
@reduxjs reduxjs deleted a comment from netlify bot Oct 25, 2018
@timdorr
Copy link
Member

timdorr commented Oct 25, 2018

#914 is related here.

I'll check this out locally in a bit and see what's up. I believe what you've got is correct FWIW.

@JoviDeCroock
Copy link
Contributor Author

JoviDeCroock commented Oct 25, 2018

#914 is related here.

I'll check this out locally in a bit and see what's up. I believe what you've got is correct FWIW.

It works when i test it locally, but yes i'd like to run that test only in React 16.6 which as far as i see is not possible with current config. The test I added is the one failing and is skipped for now.

@timdorr
Copy link
Member

timdorr commented Oct 25, 2018

We just added 16.5 in #1043, so it should follow those conventions. And again, everything looks like it should be right here. I'll see what I can do about getting it added to the suite cleanly.

As for that failing test, you can wrap it in if (React.memo) { so it noops in versions without that API.

@JoviDeCroock
Copy link
Contributor Author

Will add the if when I get home :) Thanks for reviewing already, anything else needs changing?

@timdorr
Copy link
Member

timdorr commented Oct 25, 2018

Took care of that on the web for you. Looks like the only thing is you used an outdated version of npm, but I'll fix that up after the fact when I get to my laptop.

@JoviDeCroock
Copy link
Contributor Author

Oh, thanks for telling me. I mostly use Yarn and Yarn Pnp atm so didn't bring that in mind

@timdorr
Copy link
Member

timdorr commented Oct 25, 2018

Thanks for putting this together!

@timdorr timdorr merged commit 1b43eaa into reduxjs:master Oct 25, 2018
@JoviDeCroock JoviDeCroock deleted the feature/react16.6support branch October 26, 2018 06:58
webguru7 pushed a commit to webguru7/react-redux that referenced this pull request Dec 8, 2022
* chore: upgrade dependencies

* chore: support react-is in rollup

* tests: adjust test react version

* test: provide tests for react 16.6

* feat: implement the support for react 16.6

* fix: remove jsx variant

* chore: fix failing test by skipping it until further notice

* fix: skip failing test

* Add 16.6 to the test matrix

* Wrap the test in a check for React.memo
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.

None yet

2 participants