-
-
Notifications
You must be signed in to change notification settings - Fork 20
ref: Update to latest react, redux, and various supporting libs #228
Conversation
Aside the requireAuth stuff I abstracted as it will make some things easier to maintain in the future. Wasn't required for these updates. styled-components seems to be throwing warnings, so not sure if we just need to switch to emotion/similar, but thats probably an easy one |
componentWillReceiveProps(nextProps, nextContext) { | ||
let isRouterInContext = !!nextContext.router; | ||
let isLocationInProps = nextProps.location !== undefined; | ||
componentDidUpdate(prevProps) { |
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.
50% chance this breaks behavior, but given the router object is likely the same, the behavior might be the same
// TODO(dcramer): make this simply call AsyncComponent instead of extend | ||
export default class AsyncPage extends AsyncComponent { | ||
static propTypes = { | ||
params: PropTypes.object, | ||
location: PropTypes.object | ||
}; | ||
|
||
componentWillMount() { |
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.
duplicated from AsyncComponent
2a30a03
to
f6c4895
Compare
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.
Tried to update react-router
, but couldnt handle the awfulness of the APIs. Tried to switch to @reach/router
, similar concerns as react-router (albeit slightly nicer). tl;dr react-router@3 is the last acceptable routing solution in JS land.
transitionName="toast" | ||
transitionEnter={false} | ||
transitionLeaveTimeout={500}> | ||
<TransitionGroup enter={false}> |
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.
i think this is not behaving the same as before, but i gave up after 10 minutes. it at least works mostly ok
d30e411
to
95e79dc
Compare
package.json
Outdated
"react-gravatar": "^2.6.3", | ||
"react-icon-base": "^2.0.8", | ||
"react-icons": "^2.2.7", | ||
"react-loadable": "^5.3.1", | ||
"react-redux": "^5.0.5", | ||
"react-router": "3.2.0", | ||
"react-redux": "5", |
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.
enzyme's shallow rendered doesnt work with react-redux 6+
95e79dc
to
ec8bd5b
Compare
ec8bd5b
to
e3809a6
Compare
d2bc470
to
2deb6a4
Compare
this PR is now very much 🤞 |
b22e00b
to
1db34e8
Compare
61b75ff
to
32a25ac
Compare
No description provided.