Skip to content

Commit

Permalink
Fix typo: supportsMicrotask -> supportsMicrotasks (#25142)
Browse files Browse the repository at this point in the history
  • Loading branch information
kvvzr committed Aug 25, 2022
1 parent d0f3966 commit c8b778b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-reconciler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)`
Expand Down

0 comments on commit c8b778b

Please sign in to comment.