Skip to content

(feat): support react 16.6#1062

Merged
timdorr merged 10 commits into
reduxjs:masterfrom
JoviDeCroock:feature/react16.6support
Oct 25, 2018
Merged

(feat): support react 16.6#1062
timdorr merged 10 commits into
reduxjs:masterfrom
JoviDeCroock:feature/react16.6support

Conversation

@JoviDeCroock

Copy link
Copy Markdown
Contributor

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

@JoviDeCroock

Copy link
Copy Markdown
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

timdorr commented Oct 25, 2018

Copy link
Copy Markdown
Member

#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

JoviDeCroock commented Oct 25, 2018

Copy link
Copy Markdown
Contributor Author

#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

timdorr commented Oct 25, 2018

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor Author

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

@timdorr

timdorr commented Oct 25, 2018

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor Author

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

@timdorr

timdorr commented Oct 25, 2018

Copy link
Copy Markdown
Member

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
albertodev7 pushed a commit to albertodev7/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.

2 participants