EuiMutationObserver wraps the browser MutationObserver API as a render-prop component. It extends EuiObserver.
- File:
components/observer/mutation_observer/mutation_observer.tsx
- Class size: 18 lines
- State: None (stateless)
- Lifecycle: Inherited from
EuiObserver
Migration notes:
Trivial migration once EuiObserver base is converted. Essentially just calls the observer setup with MutationObserver-specific config. Should be migrated together with EuiObserver.
Acceptance criteria:
EuiMutationObserverwraps the browserMutationObserverAPI as a render-prop component. It extendsEuiObserver.components/observer/mutation_observer/mutation_observer.tsxEuiObserverMigration notes:
Trivial migration once
EuiObserverbase is converted. Essentially just calls the observer setup withMutationObserver-specific config. Should be migrated together withEuiObserver.Acceptance criteria:
MutationObserverbehavior