Fork me on GitHub
#reagent
<
2019-05-15
>
Vesa Norilo08:05:49

while working on ┬┤getSnapshotBeforeUpdate` (here https://github.com/reagent-project/reagent/pull/430) I ran into trouble because react drops the deprecated lifecycle methods when you use one of the new methods, and reagent relies on componentWillMount to set .-cljsMountOrder. Since react 17 will remove componentWillMount it might be good idea to move away from it. I was wondering if the mount order could be set in the constructor?