From c8b778b7f44faba63d1d2eeb9f7d95da282e0a34 Mon Sep 17 00:00:00 2001 From: kwzr Date: Fri, 26 Aug 2022 00:56:24 +0900 Subject: [PATCH] Fix typo: supportsMicrotask -> supportsMicrotasks (#25142) --- packages/react-reconciler/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-reconciler/README.md b/packages/react-reconciler/README.md index c2f7991acdb2d..102fbf42e141b 100644 --- a/packages/react-reconciler/README.md +++ b/packages/react-reconciler/README.md @@ -199,7 +199,7 @@ You can proxy this to `clearTimeout` or its equivalent in your environment. This is a property (not a function) that should be set to something that can never be a valid timeout ID. For example, you can set it to `-1`. -#### `supportsMicrotask` +#### `supportsMicrotasks` Set this to true to indicate that your renderer supports `scheduleMicrotask`. We use microtasks as part of our discrete event implementation in React DOM. If you're not sure if your renderer should support this, you probably should. The option to not implement `scheduleMicrotask` exists so that platforms with more control over user events, like React Native, can choose to use a different mechanism. #### `scheduleMicrotask(fn)`