From c3f1afa6d837c27ca104ab2112aa3ed694802e53 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Mon, 22 Sep 2025 10:10:25 -0700 Subject: [PATCH 1/3] Align `InteractionManager` Deprecation Notice w/ Warning --- docs/interactionmanager.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/interactionmanager.md b/docs/interactionmanager.md index 9e0f230df03..f1297f909a8 100644 --- a/docs/interactionmanager.md +++ b/docs/interactionmanager.md @@ -6,7 +6,7 @@ title: 🗑️ InteractionManager import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; :::warning Deprecated -Use the [`setImmediate`](timers) instead. +Avoid long-running work and use [`requestIdleCallback`](global-requestIdleCallback) or [`setImmediate`](timers) instead. ::: InteractionManager allows long-running work to be scheduled after any interactions/animations have completed. In particular, this allows JavaScript animations to run smoothly. From f6559e7342e1bb739c4e1f3ee7bc75e4fb6a2a69 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Mon, 22 Sep 2025 10:28:32 -0700 Subject: [PATCH 2/3] Omit `setImmediate` recommendation --- docs/interactionmanager.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/interactionmanager.md b/docs/interactionmanager.md index f1297f909a8..8eac16a4b70 100644 --- a/docs/interactionmanager.md +++ b/docs/interactionmanager.md @@ -6,7 +6,7 @@ title: 🗑️ InteractionManager import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; :::warning Deprecated -Avoid long-running work and use [`requestIdleCallback`](global-requestIdleCallback) or [`setImmediate`](timers) instead. +Avoid long-running work and use [`requestIdleCallback`](global-requestIdleCallback) instead. ::: InteractionManager allows long-running work to be scheduled after any interactions/animations have completed. In particular, this allows JavaScript animations to run smoothly. From 2ba659f758e475e089b30aecbb26a8a4a377ee72 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Mon, 22 Sep 2025 12:10:52 -0700 Subject: [PATCH 3/3] Backport to v0.80 and v0.81 docs --- website/versioned_docs/version-0.80/interactionmanager.md | 2 +- website/versioned_docs/version-0.81/interactionmanager.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/versioned_docs/version-0.80/interactionmanager.md b/website/versioned_docs/version-0.80/interactionmanager.md index 9e0f230df03..26e9ed0d69c 100644 --- a/website/versioned_docs/version-0.80/interactionmanager.md +++ b/website/versioned_docs/version-0.80/interactionmanager.md @@ -6,7 +6,7 @@ title: 🗑️ InteractionManager import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; :::warning Deprecated -Use the [`setImmediate`](timers) instead. +Avoid long-running work and use `requestIdleCallback` instead. ::: InteractionManager allows long-running work to be scheduled after any interactions/animations have completed. In particular, this allows JavaScript animations to run smoothly. diff --git a/website/versioned_docs/version-0.81/interactionmanager.md b/website/versioned_docs/version-0.81/interactionmanager.md index 9e0f230df03..26e9ed0d69c 100644 --- a/website/versioned_docs/version-0.81/interactionmanager.md +++ b/website/versioned_docs/version-0.81/interactionmanager.md @@ -6,7 +6,7 @@ title: 🗑️ InteractionManager import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import constants from '@site/core/TabsConstants'; :::warning Deprecated -Use the [`setImmediate`](timers) instead. +Avoid long-running work and use `requestIdleCallback` instead. ::: InteractionManager allows long-running work to be scheduled after any interactions/animations have completed. In particular, this allows JavaScript animations to run smoothly.