mirror of
https://github.com/hanzoai/react.git
synced 2026-09-24 17:02:27 +00:00
[Fiber] Make bad element type message same as in Stack (#8460)
* Make bad element type message same as in Stack This makes Fiber emit the same message as Stack (aside from the missing owner information). * Add a separate test verifying error includes owner name Fiber currently doesn't pass it. This is just to keep track of it as a todo.
This commit is contained in:
@@ -83,7 +83,7 @@ src/renderers/shared/hooks/__tests__/ReactHostOperationHistoryHook-test.js
|
||||
|
||||
src/renderers/shared/shared/__tests__/ReactComponent-test.js
|
||||
* should throw on invalid render targets
|
||||
* throws usefully when rendering badly-typed elements
|
||||
* includes owner name in the error about badly-typed elements
|
||||
|
||||
src/renderers/shared/shared/__tests__/ReactComponentLifeCycle-test.js
|
||||
* should carry through each of the phases of setup
|
||||
|
||||
@@ -1221,6 +1221,7 @@ src/renderers/shared/shared/__tests__/ReactComponent-test.js
|
||||
* should support new-style refs with mixed-up owners
|
||||
* should call refs at the correct time
|
||||
* fires the callback after a component is rendered
|
||||
* throws usefully when rendering badly-typed elements
|
||||
|
||||
src/renderers/shared/shared/__tests__/ReactComponentLifeCycle-test.js
|
||||
* should not reuse an instance when it has been unmounted
|
||||
|
||||
Reference in New Issue
Block a user