Closed rberger closed 5 years ago
Thanks for raising this @rberger and apologies for any inconvenience this has caused you.
In short, this is now fixed with a new release of the Leiningen re-frame template so if you try again you will no longer get this issue.
The long story is there are few things going on.
1) I recently migrated the Leiningen re-frame template to use shadow-cljs and made the mistake of using caret ^
version ranges in package.json
which includes any newer minor or patch level version. Unfortunately this is the default of npm install --save ...
.
2) Subsequently, React 16.9.0
has been released which contains a change that now prints warnings to the JS console about deprecated unsafe lifecycle methods - https://reactjs.org/blog/2019/08/08/react-v16.9.0.html#new-deprecations
3) Due to 1. when using the Leiningen re-frame template React 16.9.0
has been installed incorrectly instead of 16.8.6
.
4) Now I have removed the ^
from the versions in package.json
in the Leiningen re-frame template so that React 16.8.6
will used again.
5) @Deraen has been doing good work on the upcoming reagent 0.9.0
, which looks like it will include React 16.9.0
- https://github.com/reagent-project/reagent/pull/443
6) Once reagent 0.9.0
is released I'll upgrade re-frame and re-frame-template to use reagent 0.9.0
(thus React 16.9.0
) and due to the above pull request in 5. you should not see these warnings again.
Thanks again for the bug report.
Is there some new conflict with react-dom or am I doing something wrong?
I'm running cli version: 2.8.48 node: v12.7.0 npm: 6.10.3 on macOS Mojave 10.14.6
I just did:
Didn't change anything from the output of the template.
Then ran:
And the Chrome console is spewing messages like the following every time I do anything in the re-frame-10x window: