mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Fix typo: supportsMicrotask -> supportsMicrotasks (#25142)
This commit is contained in:
@@ -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)`
|
||||
|
||||
Reference in New Issue
Block a user