@samitouri / QOS-React-2 / commits / c8b778b7f4

Fix typo: supportsMicrotask -> supportsMicrotasks (#25142)

kwzr committed Aug 26, 2022 at 00:56 UTC c8b778b7f44faba63d1d2eeb9f7d95da282e0a34
1 file changed +1 -1
packages/react-reconciler/README.md
+1 -1
@@ -199,7 +199,7 @@ You can proxy this to `clearTimeout` or its equivalent in your environment.
199
200 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`.
201
202 -#### `supportsMicrotask`
202 +#### `supportsMicrotasks`
203
204 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.
205 #### `scheduleMicrotask(fn)`