mirror of
https://github.com/facebook/react.git
synced 2026-02-23 20:23:02 +00:00
Attach Listeners Eagerly to Roots and Portal Containers (#19659)
* Failing test for #19608 * Attach Listeners Eagerly to Roots and Portal Containers * Forbid createEventHandle with custom events We can't support this without adding more complexity. It's not clear that this is even desirable, as none of our existing use cases need custom events. This API primarily exists as a deprecation strategy for Flare, so I don't think it is important to expand its support beyond what Flare replacement code currently needs. We can later revisit it with a better understanding of the eager/lazy tradeoff but for now let's remove the inconsistency. * Reduce risk by changing condition only under the flag Co-authored-by: koba04 <koba0004@gmail.com>
This commit is contained in:
@@ -360,5 +360,6 @@
|
||||
"368": "ReactDOM.createEventHandle: setListener called on an invalid target. Provide a valid EventTarget or an element managed by React.",
|
||||
"369": "ReactDOM.createEventHandle: setter called on an invalid target. Provide a valid EventTarget or an element managed by React.",
|
||||
"370": "ReactDOM.createEventHandle: setter called with an invalid callback. The callback must be a function.",
|
||||
"371": "Text string must be rendered within a <Text> component.\n\nText: %s"
|
||||
"371": "Text string must be rendered within a <Text> component.\n\nText: %s",
|
||||
"372": "Cannot call unstable_createEventHandle with \"%s\", as it is not an event known to React."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user