Dan Abramov
c8a7988bf9
Add a failing test case for #6742
...
getOperations() blows up when replacing null with a native because the null component has debugID of 0 that isn’t registered in the component tree.
2016-05-11 23:27:48 +01:00
yiminghe
b11540ccb2
consistent owner for stateless component ( #6534 )
2016-05-10 22:21:16 -07:00
Sebastian Markbåge
cf157886e9
React Fiber Reconciler ( #6690 )
...
This is an outline for the new reconciler infrastructure.
I created a noop renderer to have something to get started from.
I split the reconciler folder into old and new, as well as shared.
I put shouldUpdateReactComponent in shared as an example of a
utility that can easily be shared between both. I plan on breaking
out more utilities like these.
2016-05-10 18:24:57 -07:00
Sebastian Markbåge
069f8099d6
Fix flow errors ( #6719 )
...
The new flow somehow found these on my machine but nowhere else
and not previously.
2016-05-10 11:56:32 -07:00
Ben Alpert
98cb2f8507
Revert "Don't wrap drag events in IE/Edge in dev builds" ( #6741 )
2016-05-10 10:58:35 -07:00
Dan Abramov
7bf96c08e6
Merge pull request #6377 from puradox/proptypes-symbol
...
Add new primitive PropType `Symbol`
2016-05-10 15:09:12 +01:00
yiminghe
904ee9a678
allow to ignore value attribute for option ( #5362 )
2016-05-09 09:22:50 -07:00
Jim
96cb8c5fc4
Basic SSR support for error boundaries ( #6694 )
2016-05-06 16:54:06 -07:00
Paul O’Shannessy
873369cc7c
Cleanup: remove @nolint ( #6703 )
2016-05-05 16:12:17 -07:00
Andreas Svensson
2af4765a2a
DOMLazyTree, populate <object> before insertion into DOM ( #6691 )
2016-05-05 15:12:11 -07:00
Ben Alpert
e01bf78a79
Move dev-only flags to only exist on composites ( #6709 )
...
_isOwnerNecessary was unused.
2016-05-05 15:07:04 -07:00
Dan Abramov
b6a6078167
Merge pull request #6647 from gaearon/bye-bye-reactperf
...
Replace ReactPerf with new implementation
2016-05-05 02:57:13 +01:00
Jay Phelps
fbe900265f
[DOCS] ReactTextComponent was renamed ReactDOMTextComponent a while ago ( #6700 )
2016-05-04 14:44:53 -07:00
Troy DeMonbreun
7cf61db257
Fix for #6062 : Show source line number on unknown property warning ( #6398 )
...
* New approach for 6062 fix : Show source line number on unknown property warning
* WIP: ReactDebugToolEventForwarderDevTool
* Update event signature to debugID
* Trigger events in ReactDOMComponent
* Renamed to onMountDOMComponent; passing in element directly
* Added debugID; updated simple test
* Added test for multi-div JSX to ref exact line
* Added test for composite component
2016-05-03 15:51:07 -07:00
Sebastian Markbåge
771d938fc0
Set up Flow - Yay! ( #6682 )
...
This just configures flow to be checked and fixes our existing
Flow typed files.
Possible enhancements:
Export .js.flow declarations from the build. Unclear whether this
will be a supported workflow in the future or not, so let's wait
on that.
We should fail builds and CI on Flow errors.
Ideally we should lint for Flow style guides (like no space before
colon).
2016-05-03 14:37:13 -07:00
Pieter De Baets
760b1ef4c3
Remove some mocks that are already packaged by InitializeJavaScriptAppEngine ( #6642 )
2016-05-03 16:46:51 +01:00
Dan Abramov
82e363c464
Fix displayName in ReactPerf.getInclusive() output
2016-05-03 14:21:30 +01:00
Dan Abramov
7b241d1d7f
Add tests and fix wasted render calculation
2016-05-03 14:21:30 +01:00
Dan Abramov
bc241bfcfe
Add getUpdateCount() to ReactComponentTreeDevtool
...
It is necessary to exclude just mounted components from wasted calculation.
2016-05-03 14:21:30 +01:00
Dan Abramov
e187affcaf
Make stats less noisy for top-level components
2016-05-03 14:21:29 +01:00
Dan Abramov
abe9a0ce94
Ignore lifecycle events outside batches
...
Technically this shouldn't happen but it seems possible with ReactNativeMount.unmountComponentAtNode().
For now, let's just ignore these lifecycle events because ReactPerf makes a hard assumption that all lifecycle hooks happen inside batches.
We can revisit later when we have a comprehensive test suite for ReactPerf itself.
2016-05-03 14:21:29 +01:00
Dan Abramov
8b9b79eb6b
Fix incorrect onBegin/onEnd timer pair
2016-05-03 14:21:29 +01:00
Dan Abramov
103ca4b406
Use performanceNow() instead of performance.now()
2016-05-03 14:21:29 +01:00
Dan Abramov
49a1542c9f
Emit flush events on React Native for ReactPerf
2016-05-03 14:21:29 +01:00
Dan Abramov
f22e54a947
Add getLastMeasurements() as it is documented as public API
2016-05-03 14:21:29 +01:00
Dan Abramov
411fc9ca7d
Rename the new ReactPerfAnalysis to ReactPerf
2016-05-03 14:21:29 +01:00
Dan Abramov
5f8f1f6c16
Delete the old ReactPerf
2016-05-03 14:21:28 +01:00
Pieter De Baets
222f5087fe
Move ReactIOS components to native subfolder ( #6643 )
...
* Move ReactIOS components to ReactNative
* Drop ReactNative subfolder
2016-05-03 14:05:33 +01:00
Jake Boone
393a1798fa
Grammar correction in ReactDOMInput.js warning ( #6657 )
...
Changed "a uncontrolled input" to "an uncontrolled input".
2016-05-02 15:23:22 -07:00
Brandon Dail
eb116482a3
Return early from enqueuePutListener for SSR ( #6678 )
2016-05-02 14:26:35 -07:00
Desmond Brand
db175052c0
Add links to docs for addons and top level API ( #6555 )
...
This makes it easier to figure out where the docs live.
Googling for e.g. `react-addons-update` also works, but this should
make things easier for people that hyperclick directly to the source.
2016-05-02 06:14:28 -07:00
Sasha Aickin
256753b830
Add test logic to make sure that events get tested when rendering on top of server-generated markup. ( #6668 )
2016-04-30 11:21:34 -07:00
Greg Hurrell
4f01b4b186
Remove errant console.log ( #6664 )
...
That crept in in c1e3f7ec14 .
2016-04-30 07:45:23 -07:00
Sebastian Markbåge
0e4b046634
Get rid of transformMatrix/decomposeMatrix special case ( #6660 )
...
This is no longer needed on the native side.
This is also the last use of the Platform flag. React Core is now
platform agnostic with regard to React Native. So I'll remove
the mocks and dependency.
2016-04-29 15:57:12 -07:00
Jason Quense
a02eeb59f5
Bail out of dedupe logic in cases where there is an incomplete value descriptor ( #6648 )
2016-04-29 15:21:01 -07:00
Jan Schär
3d31361cfb
Allow custom elements extending native ones ( #6570 )
...
...by passing the `is` attribute as the second param to `createElement`.
See http://webcomponents.org/polyfills/custom-elements/
2016-04-29 15:05:33 -07:00
Ben Alpert
c1e3f7ec14
Fix bug with double updates in a single batch ( #6650 )
...
Fixes #2410 . Fixes #6371 . Fixes #6538 .
I also manually tested the codepen in #3762 and verified it now works.
2016-04-29 14:02:51 -07:00
Dan Abramov
b7f6a642f6
Make ReactComponentTreeDevtool work with React Native
2016-04-29 16:13:21 +01:00
Dan Abramov
67b1dbf75f
Add new ReactPerf
2016-04-28 20:45:57 +01:00
Christoph Pojer
d07b554291
Merge pull request #6620 from cpojer/master
...
Update to Jest 12. Codemod to new Jest APIs.
2016-04-28 15:03:20 +09:00
cpojer
8e34514096
Update to Jest 12. Codemod to new Jest APIs.
2016-04-28 14:54:57 +09:00
Sebastian Markbåge
72ba5971ae
Use spread instead of deprecated merge utility ( #6634 )
2016-04-27 19:54:40 -07:00
Dan Abramov
b8f8360b5c
Merge pull request #6388 from gaearon/bye-bye-deprecated-utils
...
Remove OrderedMap and ReactPropTransferer
2016-04-27 20:36:39 +01:00
Dan Abramov
2723323006
Remove OrderedMap and ReactPropTransferer
...
These are not exposed publicly and have been deprecated.
2016-04-27 17:44:02 +01:00
Dan Abramov
aaadb31827
Add ReactNativeOperationHistoryDevtool to track native operations
2016-04-26 23:50:58 +01:00
Jim
8dfdac6780
ComponentWillUnmount should only ever be invoked once ( #6613 )
2016-04-25 18:06:30 -07:00
Dan Abramov
76a4c46dba
Merge pull request #6549 from gaearon/instrumentation-new
...
Provide info about component tree to devtools
2016-04-26 01:12:23 +01:00
Dan Abramov
a9e0896af8
Mute devtool events for TopLevelWrapper and empty components
2016-04-26 01:02:45 +01:00
Dan Abramov
7dbc95f379
Merge pull request #6605 from gaearon/fix-warning-condition
...
Fix the warning condition in ReactDebugTool and ReactDOMDebugTool
2016-04-25 20:16:52 +01:00
Dan Abramov
1f97103d7b
Flip the warning condition in ReactDebugTool and ReactDOMDebugTool
...
The current warning condition caused the first error to be swallowed, and all the next errors to be logged. I believe the intention was the opposite: to log the first error, and to ignore any next errors for the same method.
2016-04-25 00:41:53 +01:00