equinor / webviz-subsurface-components

Custom subsurface visualizations for use in Webviz and/or Dash.
https://github.com/orgs/equinor/projects/24
Mozilla Public License 2.0
33 stars 38 forks source link

[NGRM] - SyncLogViewer is not working if wrapped with React.StrictMode component #2110

Open mirisb opened 1 month ago

mirisb commented 1 month ago

Introduction: React.StrictMode component is used to debug components and make sure they are written correctly. https://react.dev/reference/react/StrictMode StrictMode is only active in dev mode thus it is not in effect when running production mode.

Problem: When wrapping SyncLogViewer in StrictMode it becomes disfunctional: dfc100ca-19f3-49d7-baff-8f46287ca0d4

Also in Dev Tools console we see errors: image

This problem is interfering with development and also indicates a malfunction in the SyncLogView component.

Vladimir-Kokin commented 3 weeks ago

One sort of strict mode warnings in the console was removed in PR #2087 (commit) Another sort of warnings (as in the issue description) still exists