Skip to content

Commit 927f161

Browse files
authored
Align InteractionManager Deprecation Notice w/ Warning (#4813)
* Align `InteractionManager` Deprecation Notice w/ Warning * Omit `setImmediate` recommendation * Backport to v0.80 and v0.81 docs
1 parent 494818f commit 927f161

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/interactionmanager.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: 🗑️ InteractionManager
66
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants';
77

88
:::warning Deprecated
9-
Use the [`setImmediate`](timers) instead.
9+
Avoid long-running work and use [`requestIdleCallback`](global-requestIdleCallback) instead.
1010
:::
1111

1212
InteractionManager allows long-running work to be scheduled after any interactions/animations have completed. In particular, this allows JavaScript animations to run smoothly.

website/versioned_docs/version-0.80/interactionmanager.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: 🗑️ InteractionManager
66
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants';
77

88
:::warning Deprecated
9-
Use the [`setImmediate`](timers) instead.
9+
Avoid long-running work and use `requestIdleCallback` instead.
1010
:::
1111

1212
InteractionManager allows long-running work to be scheduled after any interactions/animations have completed. In particular, this allows JavaScript animations to run smoothly.

website/versioned_docs/version-0.81/interactionmanager.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: 🗑️ InteractionManager
66
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants';
77

88
:::warning Deprecated
9-
Use the [`setImmediate`](timers) instead.
9+
Avoid long-running work and use `requestIdleCallback` instead.
1010
:::
1111

1212
InteractionManager allows long-running work to be scheduled after any interactions/animations have completed. In particular, this allows JavaScript animations to run smoothly.

0 commit comments

Comments
 (0)