Closed resource11 closed 2 years ago
cc @ArfatSalman @rahildar, who are taking over maintenance.
@davidtheclark @resource11 Can we put check for titleId
and titleText
in the constructor
of Modal
? This way we can remove the componentWillMount
call altogether.
Moved the check down to the render()
method. We'll still need to work on lifecycle methods for two dependencies (react-displace
and focus-trap-react
), yes, @ArfatSalman?
We'll still need to work on lifecycle methods for two dependencies (react-displace and focus-trap-react), yes, @ArfatSalman?
focus-trap-react
does not have a componentWillMount
and we can safely put the componentWillMount
of react-displace
in the constructor. @davidtheclark @resource11
FYI I'm gonna try moving the work of updating the dependencies to another PR so you can isolate the lifecycle work here.
I had already started the other dependency work in those libraries, @wldcordeiro, and was submitting PRs for those. If you want to take them on instead, I'm good with that!
Hello! It seems the last activity on this PR was over a month ago--is there any way I can help move it forward?
Hey y'all! Good work! Any progress on this? Would be awesome to get the warnings gone 😄
My apologies for the delay, @ArfatSalman! I got sidetracked with a Covid-inspired layoff and a job search. Made the requested changes and also bumped up some of the dependencies.
My apologies for the delay, @ArfatSalman! I got sidetracked with a Covid-inspired layoff and a job search. Made the requested changes and also bumped up some of the dependencies.
I'm not sure about mixing dependency updates and react unsafe method fix in the same PR. Other than that, LGTM
I've done a fix for the componentDidMount at #121. I'm closing this issue but feel free to add separated MR.
Hey @davidtheclark! I did work on bumping some of the dependencies for this package (and did the same for
focus-trap-react
andreact-displace
to remove unsafe lifecycles from this lovely modal component. Do you mind taking a look?