day8 / re-frame-10x

A debugging dashboard for re-frame. X-ray vision as tooling.
MIT License
631 stars 68 forks source link

Remove warning about componentWill update #274

Closed stumitchell closed 3 years ago

stumitchell commented 4 years ago

please update https://github.com/day8/re-frame-10x/blob/363d66d2dea3f931b5856a5821966b986c843da5/src/day8/re_frame_10x/view/event.cljs#L190 to remove this warning.

Warning: componentWillUpdate has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run `npx react-codemod rename-unsafe-lifecycles` in your project source folder.
Please update the following components: event-expression