mirror of
https://github.com/facebook/react.git
synced 2026-02-23 20:23:02 +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:
@@ -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