Closed
Bug 1326137
Opened 8 years ago
Closed 8 years ago
update redux and react-redux to remove react-dev warnigs
Categories
(DevTools :: Shared Components, defect, P1)
DevTools
Shared Components
Tracking
(firefox53 fixed)
Tracking | Status | |
---|---|---|
firefox53 | --- | fixed |
People
(Reporter: gasolin, Assigned: jsnajdr)
References
(Blocks 1 open bug)
Details
(Whiteboard: [netmonitor-reserve])
Attachments
(2 files)
After bug 1325914, the react-dev warnings from source code is resolved.
There are several `Stateless function components cannot be given refs` warnings as well, ex:
Warning: Stateless function components cannot be given refs (See ref "wrappedInstance" in ToggleButton created by Connect(ToggleButton)). Attempts to access this ref will fail.
StateOverflow said it could be fixed by upgrading to react-redux 4, which wont attach ref to the wrapped component by default
http://stackoverflow.com/questions/35952607/what-does-stateless-function-components-cannot-be-given-refs-mean
The redux / react-redux version are 11 months ago, we should update it to get benefit of .
Comment 1•8 years ago
|
||
Hi Fred, would like to confirm if this bug should be put in the reserve backlog?
Flags: qe-verify?
Flags: needinfo?(gasolin)
Reporter | ||
Comment 2•8 years ago
|
||
yes please put this into the reserve backlog, and its qe-verify-
Flags: needinfo?(gasolin)
Updated•8 years ago
|
Flags: qe-verify? → qe-verify-
Priority: -- → P3
Whiteboard: [netmonitor] → [netmonitor-reserve]
Reporter | ||
Comment 3•8 years ago
|
||
redux from 3.3 to 3.6 https://github.com/reactjs/redux/releases
react-redux from v4 or v3.0.1(the version is not specified in react_redux_update file, guessed by commit time) to 5.0.1 https://github.com/reactjs/react-redux
react-redux 5.0 claim a significant performance improvements on connect() so it's more attractive to update it.
https://github.com/reactjs/react-redux/pull/416
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 6•8 years ago
|
||
Attached two patches that upgrade redux and react-redux to their latest versions, respectively. I didn't update the *_UPGRADING text files yet, I'm aware that it needs to be done before landing.
(In reply to Fred Lin [:gasolin] from comment #3)
> react-redux 5.0 claim a significant performance improvements on connect() so
> it's more attractive to update it.
> https://github.com/reactjs/react-redux/pull/416
Unfortunately, these performance improvements don't materialize in our case. I think that the reason is that these promised improvements are in cases when there is a lot (hundreds) of connect()-ed components and when they are in a parent-child relationship with each other. In that case, it matters a lot in what order the updates are done. And react-redux 5.0 optimizes that order.
In devtools, there is always just a handful of connect()-ed components, so the optimizations don't matter.
I ran two try runs with talos for the patch:
https://treeherder.mozilla.org/perf.html#/compare?originalProject=try&originalRevision=5bad4416358cf3aa775c52e57891215e522c9639&newProject=try&newRevision=2b4603b71b935196d558fa75b343576dbf51be3f&framework=1&showOnlyImportant=0
https://treeherder.mozilla.org/perf.html#/compare?originalProject=try&originalRevision=5bad4416358cf3aa775c52e57891215e522c9639&newProject=try&newRevision=41400ce6b4c2f6792c747fdb378f651939472cf3&framework=1&showOnlyImportant=0
None of them shows any significant changes performance-wise.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Comment 9•8 years ago
|
||
Submitting final patches for review.
I sent an "intent to upgrade" announcement to the devtools mailing list on Jan 10 (yesterday). So far, I got one positive reply from jryans. My plan is to wait a few days and then land if no issues are raised.
Assignee: nobody → jsnajdr
Updated•8 years ago
|
Status: NEW → ASSIGNED
Iteration: --- → 53.5 - Jan 23
Priority: P3 → P1
Reporter | ||
Comment 10•8 years ago
|
||
mozreview-review |
Comment on attachment 8825323 [details]
Bug 1326137 - Upgrade redux to version 3.6.0
https://reviewboard.mozilla.org/r/103500/#review104842
::: devtools/client/shared/vendor/REDUX_UPGRADING:12
(Diff revision 2)
> -REDUX_UPGRADING
> -
> -Current version of redux : 3.3.0
> -
> -1 - grab the unminified version of redux on npm. For release 3.3.0 for instance,
> -https://npmcdn.com/redux@3.3.0/dist/redux.js
> +How to upgrade:
> +1. git clone https://github.com/reactjs/redux - clone the repo
> +2. git checkout v3.6.0 - checkout the right version tag
> +3. npm install - compile the sources to a JS module file
> +4. cp dist/redux.js devtools/client/shared/vendor - copy the unminified JS file
> +5. update the current version in this file
very clear instruction +1
Comment 11•8 years ago
|
||
mozreview-review |
Comment on attachment 8825324 [details]
Bug 1326137 - Upgrade react-redux to version 5.0.1
https://reviewboard.mozilla.org/r/103502/#review104916
LGTM!
R+ assuming Try is green
Honza
Attachment #8825324 -
Flags: review?(odvarko) → review+
Comment 12•8 years ago
|
||
mozreview-review |
Comment on attachment 8825323 [details]
Bug 1326137 - Upgrade redux to version 3.6.0
https://reviewboard.mozilla.org/r/103500/#review104918
R+ assuming Try is green.
Thanks Jarda for working on this!
Honza
Attachment #8825323 -
Flags: review?(odvarko) → review+
Comment 13•8 years ago
|
||
Pushed by jsnajdr@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/d2a185bd6efe
Upgrade redux to version 3.6.0 r=Honza
https://hg.mozilla.org/integration/autoland/rev/f649856d2281
Upgrade react-redux to version 5.0.1 r=Honza
Comment 14•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d2a185bd6efe
https://hg.mozilla.org/mozilla-central/rev/f649856d2281
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox53:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 53
Reporter | ||
Comment 15•8 years ago
|
||
The warnings are gone, thanks!
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•