mirror of
https://github.com/facebook/react.git
synced 2026-02-26 18:58:05 +00:00
Add callback validation to fiber-based renderers
Moved ReactFiberClassComponent validateCallback() helper function into a standalone util used by both fiber and stack implementations. Validation now happens in ReactFiberUpdateQueue so that non-DOM renderers will also benefit from it.
This commit is contained in:
@@ -12,10 +12,6 @@ src/isomorphic/classic/__tests__/ReactContextValidator-test.js
|
||||
src/renderers/dom/__tests__/ReactDOMProduction-test.js
|
||||
* should throw with an error code in production
|
||||
|
||||
src/renderers/dom/shared/__tests__/ReactDOM-test.js
|
||||
* throws in render() if the mount callback is not a function
|
||||
* throws in render() if the update callback is not a function
|
||||
|
||||
src/renderers/dom/shared/__tests__/ReactDOMComponent-test.js
|
||||
* should clean up input value tracking
|
||||
* should clean up input textarea tracking
|
||||
|
||||
@@ -620,6 +620,8 @@ src/renderers/dom/shared/__tests__/ReactDOM-test.js
|
||||
* should overwrite props.children with children argument
|
||||
* should purge the DOM cache when removing nodes
|
||||
* allow React.DOM factories to be called without warnings
|
||||
* throws in render() if the mount callback is not a function
|
||||
* throws in render() if the update callback is not a function
|
||||
* preserves focus
|
||||
* calls focus() on autoFocus elements after they have been mounted to the DOM
|
||||
|
||||
|
||||
Reference in New Issue
Block a user