Warning on React strictmode

Posted by: hwangsj124 on 11 June 2020, 4:50 am EST

  • Posted 11 June 2020, 4:50 am EST

    If we use React strict mode with wijmo, warnings will appear.

    Do you plan to change findDOMNode to ref?

    ========================================================

    https://reactjs.org/docs/strict-mode.html#warning-about-deprecated-finddomnode-usage

    =========================================================

    Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of FlexGrid which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://fb.me/react-strict-mode-find-node

    in div (created by FlexGrid)

    in FlexGrid (created by GridControl)

    in GridControl (created by LoadUmd)

    in LoadUmd (at hooks/index.js:18)

    in WithLoadUmd(GridControl) (at Palette.jsx:45)

    in UsercontrolErrorBoundary (at Usercontrol.jsx:21)

    in div (created by styled.div)

    in styled.div (at Usercontrol.jsx:10)

    in Usercontrol (at Palette.jsx:61)

    in div (at Palette.jsx:60)

    in Item (at Palette.jsx:43)

    in div (at Palette.jsx:39)

    in div (at Palette.jsx:35)

    in ItemGroup (at Palette.jsx:13)

    in div (at Palette.jsx:9)

    in Palette (at PaletteSectionContainer.jsx:24)

    in div (at PaletteSection.jsx:16)

    in PaletteBody (at PaletteSectionContainer.jsx:23)

    in div (at PaletteSection.jsx:7)

    in PaletteSection (at PaletteSectionContainer.jsx:19)

    in PaletteSectionContainer (created by ConnectFunction)

    in ConnectFunction (at DesignerContainer.jsx:28)

    in div (at DesignerContainer.jsx:27)

    in div (at Designer.jsx:7)

    in Designer (at DesignerContainer.jsx:25)

    in DesignerContainer (created by ConnectFunction)

    in ConnectFunction (at App.js:14)

    in Provider (at App.js:13)

    in App (at src/index.js:9)

    in StrictMode (at src/index.js:8)

  • Posted 12 June 2020, 1:00 am EST

    Hi,

    We have forwarded this issue to the developers with internal tracking id 440577. We will update you once this issue is fixed.

    Regards,

    Ashwin

  • Posted 9 July 2020, 9:11 am EST

    Hi,

    This issue has been fixed in the latest nightly build. You may verify the same using the sample below:

    https://stackblitz.com/edit/react-kwoukm

    Note that nightly builds are not suitable in production environment because they have not passed through the QA cycle as all of our release builds do.

    This fix will be included in the next release.

    ~regards

  • Posted 9 July 2020, 8:59 pm EST

    We tested it on stackblitz and our product and checked warnings doesn’t appears anymore.

    Thanks for your update. When a stable build is released, we will continue to update it.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels