mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
useMutableSource hook (#18000)
useMutableSource hook useMutableSource() enables React components to safely and efficiently read from a mutable external source in Concurrent Mode. The API will detect mutations that occur during a render to avoid tearing and it will automatically schedule updates when the source is mutated. RFC: reactjs/rfcs#147
This commit is contained in:
1 parent
30a998debf
commit
322cdcd3ab
24 files changed
+2062
-27
No files matched your search
@@ -346,5 +346,7 @@
|
||||
"345": "Root did not complete. This is a bug in React.",
|
||||
"346": "An event responder context was used outside of an event cycle.",
|
||||
"347": "Maps are not valid as a React child (found: %s). Consider converting children to an array of keyed ReactElements instead.",
|
||||
"348": "ensureListeningTo(): received a container that was not an element node. This is likely a bug in React."
|
||||
"348": "ensureListeningTo(): received a container that was not an element node. This is likely a bug in React.",
|
||||
"349": "Expected a work-in-progress root. This is a bug in React. Please file an issue.",
|
||||
"350": "Cannot read from mutable source during the current render without tearing. This is a bug in React. Please file an issue."
|
||||
}
|
||||
Reference in new issue
Block a user