You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {MutationCallback} callback The callback to execute when mutation is detected
13
+
* @param {HookTarget} target The target element to observe
13
14
* @param {boolean} [options.enabled=true] The enabled state of the mutation observer
15
+
* @param {UseMutationObserverCallback} [options.onChange] The callback to execute when mutation is detected
14
16
* @param {boolean} [options.attributes] Set to true if mutations to target's attributes are to be observed
15
17
* @param {boolean} [options.characterData] Set to true if mutations to target's data are to be observed
16
18
* @param {boolean} [options.childList] Set to true if mutations to target's children are to be observed
17
-
* @param {boolean} [options.subtree] Set to true if mutations to not just target, but also target's descendants are to be observed
18
-
* @param {boolean} [options.characterDataOldValue] Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded
19
-
* @param {boolean} [options.attributeOldValue] Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted
20
-
* @param {string[]} [options.attributeFilter] Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted
21
-
* @returns {UseMutationObserverReturn & { ref: StateRef<Target> }} An object containing the mutation observer state
19
+
* @param {boolean} [options.subtree] Set to true if mutations to not just target, but also target's descendants are to be observed
20
+
* @returns {UseMutationObserverReturn} An object containing the mutation observer state
* @param {HookTarget} target The target element to observe
28
-
* @param {MutationCallback} callback The callback to execute when mutation is detected
26
+
* @template Target The target element
29
27
* @param {boolean} [options.enabled=true] The enabled state of the mutation observer
28
+
* @param {UseMutationObserverCallback} [options.onChange] The callback to execute when mutation is detected
30
29
* @param {boolean} [options.attributes] Set to true if mutations to target's attributes are to be observed
31
30
* @param {boolean} [options.characterData] Set to true if mutations to target's data are to be observed
32
31
* @param {boolean} [options.childList] Set to true if mutations to target's children are to be observed
33
-
* @param {boolean} [options.subtree] Set to true if mutations to not just target, but also target's descendants are to be observed
34
-
* @param {boolean} [options.characterDataOldValue] Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded
35
-
* @param {boolean} [options.attributeOldValue] Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted
36
-
* @param {string[]} [options.attributeFilter] Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted
32
+
* @param {boolean} [options.subtree] Set to true if mutations to not just target, but also target's descendants are to be observed
33
+
* @returns {UseMutationObserverReturn & { ref: StateRef<Target> }} A React ref to attach to the target element
0 commit comments