Paul O’Shannessy
fc91d2fd72
[docs] Remove generic spread, Object.assign mentions
2014-12-01 13:54:26 -08:00
Christopher Chedeau
f5a9ea8e03
Merge pull request #2629 from arnihermann/diff-msg-on-checksum-fail
...
Give context aware message if markup reuse fails
2014-12-01 10:16:40 +00:00
Árni Hermann Reynisson
a352b94f57
Give context aware message if markup reuse fails
...
The context is an extra message with comparison of where server and
client markup started to differ.
2014-12-01 10:15:07 +00:00
Paul O’Shannessy
5daffbb2c3
Merge pull request #2630 from shamrin/patch-1
...
fix typo in addons.update() $splice command help
2014-11-30 10:48:24 -08:00
Alexey Shamrin
92862ed601
fix typo in addons.update() $splice command help
2014-11-30 20:20:34 +03:00
Jim
5bd0b249b7
Merge pull request #2613 from jsfb/monitor-cloneWithProps
...
Monitoring code use of cloneWithProps
2014-11-26 16:37:00 -08:00
Jim
d42b285b0c
Monitoring code use of cloneWithProps
2014-11-26 16:29:09 -08:00
Paul O’Shannessy
bb97482729
Merge pull request #2610 from zpao/update-commonjs-example
...
Update commonjs example for 0.12
2014-11-26 13:08:24 -08:00
Paul O’Shannessy
e2dcc4a863
Update commonjs example for 0.12
2014-11-26 13:08:08 -08:00
Paul O’Shannessy
45a19a290c
Merge pull request #2553 from mhuggins/headers-attribute
...
Permit th `headers` attribute
2014-11-26 11:15:21 -08:00
Paul O’Shannessy
c48b877253
Merge pull request #2596 from sebmarkbage/rce
...
reactComponentExpect expects itself
2014-11-26 11:10:00 -08:00
Paul O’Shannessy
84e35615d2
Merge pull request #2600 from zpao/npm-test
...
Use jest for `npm test`
2014-11-26 11:09:39 -08:00
Jim
aee73cc463
Merge pull request #2602 from jsfb/context-tripple-equals
...
Warn if context values differ, related to issue #2
2014-11-25 16:52:09 -08:00
Jim
90d75ab099
Warn if context values differ, related to issue #2112
2014-11-25 16:44:09 -08:00
Paul O’Shannessy
b2ace55d9d
Merge pull request #2603 from facebook/revert-2601-rm-fbtransform-syntax
...
Revert "Remove fbtransform/syntax.js"
2014-11-25 16:43:46 -08:00
Paul O’Shannessy
f7f3df3acc
Revert "Remove fbtransform/syntax.js"
2014-11-25 16:42:20 -08:00
Paul O’Shannessy
ce699e4a32
Merge pull request #2601 from zpao/rm-fbtransform-syntax
...
Remove fbtransform/syntax.js
2014-11-25 15:42:13 -08:00
Jim
3a8fb5fc1e
Merge pull request #2597 from jsfb/render-into-document
...
Replaced document.createElement with ReactTestUtil
2014-11-25 15:35:26 -08:00
Paul O’Shannessy
2a540b3fb7
Remove fbtransform/syntax.js
...
This was a file we probably never should have synced out in the first
place. We don't use it and it provides the same basic functionality that
bin/jsx provides.
2014-11-25 15:34:28 -08:00
Paul O’Shannessy
fd3f8e70e2
Merge pull request #2566 from zpao/style-fixup
...
Fix lint warnings, style fixups
2014-11-25 15:11:27 -08:00
Paul O’Shannessy
3ce88d7c17
Use jest for npm test
...
I've given in and this is easier than `npm run jest`. `grunt test` still
exists and is used by Travis so this has no CI implications.
2014-11-25 15:07:46 -08:00
Paul O’Shannessy
b7b74b7efe
Fix lint warnings, style fixups
...
Followup work for recent PRs
2014-11-25 15:06:30 -08:00
Jim
89fafad255
Replaced document.createElement with ReactTestUtils.renderIntoDocument where container was not subsequently utilized.
...
Fixes #1250
2014-11-25 12:06:22 -08:00
Steven Luscher
e18d87b53b
Merge pull request #2594 from steveluscher/community-round-up-24
...
Wrote Community Roundup #24
2014-11-25 10:24:47 -08:00
Sebastian Markbage
a530f1c379
reactComponentExpect expects itself
...
This was a bug when reactComponentExpectInternal was separated from
the normal reactComponentExpect flow.
2014-11-24 18:48:41 -08:00
Steven Luscher
0f488bfe71
Community #24 : New Carousel link, spelled react-prism correctly, and removed the whale-speak.
2014-11-24 18:24:52 -08:00
Steven Luscher
c94a48be4f
Wrote Community Roundup #24
2014-11-24 18:12:59 -08:00
Sebastian Markbåge
47e18c3ce6
Merge pull request #2593 from sebmarkbage/mountImage
...
Add additional field for ART reconciler
2014-11-24 17:08:13 -08:00
Sebastian Markbage
61349eb5a6
Add additional field for ART reconciler
...
ART, just like MultiChild adds an expando property to manage it's diffing
state. This is ugly and bad. We should be moving this state outside the
component for use by the diffing algorithm. This state is not needed by
components nested in composites, and varies by diffing algorithm.
It sucks that I have to add it to every component just to support ART,
but that's the quickest solution, other than disabling preventExtensions.
At least now we know that it sucks.
2014-11-24 17:02:11 -08:00
Jim
e7f4badf4a
Merge pull request #2579 from jsfb/context-to-warning-module
...
Use warning module for context warning instead of invoking console.warn ...
2014-11-24 14:42:23 -08:00
Jim
9f7901fe1d
Use warning module for context warning instead of invoking console.warn and monitorCodeUse directly. Depends on https://phabricator.fb.com/D1695279
2014-11-24 13:24:56 -08:00
Christopher Chedeau
f8aee772ce
Mention that talks will be recorded
2014-11-24 11:28:42 +00:00
Christopher Chedeau
c32cf03d0b
better wording thanks to @jwalke
2014-11-24 10:33:23 +00:00
Christopher Chedeau
fb2be69e9c
react.js conf updates
2014-11-24 09:26:00 +00:00
Ben Alpert
582bc932e5
Merge pull request #2583 from spicyj/style-example
...
Add example for how to use `style` properly
2014-11-21 14:27:32 -08:00
Ben Alpert
1c5443175c
Add example for how to use style properly
...
Test Plan: jest
2014-11-21 12:10:59 -08:00
Ben Alpert
c6ed9df7f3
Merge pull request #2582 from spicyj/rendercomponent
...
Finish renaming renderComponent -> render
2014-11-21 11:54:36 -08:00
Ben Alpert
23effb7034
Merge pull request #2581 from spicyj/rm-elt-docs
...
Update variable name and doc type to be accurate
2014-11-21 11:54:26 -08:00
Ben Alpert
d4e32a7b2c
Finish renaming renderComponent -> render
...
Test Plan: jest
2014-11-20 23:07:58 -08:00
Ben Alpert
c4b9b938cf
Update variable name and doc type to be accurate
...
Test Plan: Crossed fingers.
2014-11-20 23:03:03 -08:00
Sebastian Markbåge
68ba3b6d18
Merge pull request #2567 from sebmarkbage/childrenreconciler
...
Separate Child Reconciliation Step from Diffing
2014-11-20 11:48:54 -08:00
Sebastian Markbage
26ea341870
Separate Child Reconciliation Step from Diffing
...
This separates the reconciliation step of children into a separate module.
This is the first step towards prerendering.
The stateful instances are reconciled and put into a "rendered children"
set. Updates creates a new of these sets. These two sets are then diffed
to create insert/move/remove operations on the set.
The next step is to move the ReactChildReconciler step to before the
native DOM component. That way it's possible to rely on child
reconciliation without relying on diffing.
2014-11-20 11:45:02 -08:00
Jim
6ec952977e
Merge pull request #2565 from jsfb/fixwhitespace
...
Removed context paremeter to renderToString/renderToStaticMarkup.
2014-11-19 15:49:33 -08:00
Jim
7768d91363
Removed context paremeter to renderToString/renderToStaticMarkup.
2014-11-19 15:16:23 -08:00
Timothy Yung
006bc28633
Merge pull request #2571 from yungsters/cleanup
...
Replace `mountDepth` with `isTopLevel`
2014-11-19 13:43:50 -08:00
yungsters
fc7cf2ff63
Replace mountDepth with isTopLevel
...
Summary:
After #2570 , `mountDepth` is only used to enforce that `setProps` and `replaceProps` is only invoked on the top-level component. This replaces `mountDepth` with a simpler `isTopLevel` boolean set by `ReactMount` which reduces the surface area of the internal API and removes the need to thread `mountDepth` throughout React core.
Reviewers: @sebmarkbage @zpao
Test Plan:
Ran unit tests successfully:
```
npm run jest
```
2014-11-19 13:13:08 -08:00
Timothy Yung
70b1426ef0
Merge pull request #2570 from yungsters/updates
...
Update Dirty Components in Mount Ordering
2014-11-19 13:12:43 -08:00
yungsters
c7fd626b1f
Summary:
...
Currently, `ReactUpdates` updates dirty components in increasing order of mount depth. However, mount depth is only relative to the component passed into `React.render`. This breaks down for components that invoke `React.render` as an implementation detail because the child components will be updated before the parent component.
This fixes the problem by using the order in which components are mounted (instead of their depth). The mount order transcends component trees (rooted at `React.render` calls).
Reviewers: @sebmarkbage @zpao
Test Plan:
Ran unit tests successfully:
```
npm run jest
```
2014-11-19 12:51:55 -08:00
Paul O’Shannessy
3a0f30480d
Merge pull request #2544 from mjul/patch-1
...
Update 10.4-test-utils.md
2014-11-19 07:16:07 -08:00
Paul O’Shannessy
a07ab60ec0
Merge pull request #2554 from samccone/patch-1
...
Update tutorial language to be more explicit.
2014-11-19 06:15:35 -08:00