eui
eui copied to clipboard
[Strict Mode] EuiMutationObserver doesn't work
Describe the bug
When Strict Mode is enabled, EuiMutationObserver doesn't work. Mutations are not being registered.
| Strict Mode | No Strict Mode |
|---|---|
![]() |
![]() |
Impact and severity
It impacts all end-users of our consumers. Severe.
There is no known workaround.
[Search] EuiMutationObserver is used internally in:
[Search] EuiMutationObserver is used 2 times in Kibana
Environment and versions
- EUI version: ~
- React version: React 18 (Strict Mode)
- Kibana version (if applicable): ~
- Browser: ~
- Operating System: ~
Minimum reproducible sandbox
To Reproduce
- Enable Strict Mode.
- Render
EuiMutationObserver. - Notice that the changes observed are not actually registered and output.
Expected behavior
EuiMutationObserver works correctly and changes are registered and output correctly.

