Commit Graph

  • b209804cfb Jest preprocessor better aware of error-codes/codes.json WRT caching Brian Vaughn 2016-12-21 16:58:33 -08:00
  • ea6530d13a Removed exact object type for StackCursor Flow type This was causing the 'react:extract-errors' Gulp taks to fail. Brian Vaughn 2016-12-21 16:48:14 -08:00
  • e7a591ed57 ReactFiberStack cursor values are no longer corrupted on pop Brian Vaughn 2016-12-21 15:05:46 -08:00
  • 1148e827b9 Avoid reading the same StackCursor current multiple times Brian Vaughn 2016-12-21 14:06:20 -08:00
  • 6b51e037ca Avoid popping hosts that do not provide unique contexts Brian Vaughn 2016-12-21 13:38:35 -08:00
  • 0b7c5ff1a0 Tightened up Fiber | null type in ReactFiberStack to always require Fiber Brian Vaughn 2016-12-21 10:14:59 -08:00
  • 0c1fdfd41d Combined unwindContext and unwindHostContext into unwindContexts Brian Vaughn 2016-12-21 10:04:36 -08:00
  • a0902fc306 Generic type added to StackCursor. Default emptyObject replaced with null. Brian Vaughn 2016-12-21 09:06:56 -08:00
  • 3d0cf47d26 Added ReactFiberStack shared by ReactFiberContext and ReactFiberHostContext ReactFiberStack is the new underlying stack used by ReactFiberContext and ReactFiberHostContext. The goal is to simplify the 2 context managers and to add more errors/dev-warnings when we pop unexpected. This changeset currently causes a lot of tests to fail (as we are currently popping too many times and/or in the wrong order). I'm pushing this branch now to share with Sebastian as he is working on a related cleanup pass at beginWork. Brian Vaughn 2016-12-20 18:04:38 -08:00
  • a27e4f3361 [Fiber] Make requestIdleCallback() and requestAnimationFrame() shims async (#8591) Dan Abramov 2016-12-21 14:04:05 -08:00
  • 2a5fe4c2b0 Call refs and lifecycles on indeterminate components (#8614) Ben Alpert 2016-12-21 13:51:59 -08:00
  • 4a05c242e8 Merge pull request #8613 from sebmarkbage/fiberrefactorbailout Sebastian Markbåge 2016-12-21 13:22:20 -08:00
  • eca5b1d48e Improve error messages for invalid element types (#8612) Ben Alpert 2016-12-21 13:17:34 -08:00
  • 26c82cea72 Move other branches out of the bail out Sebastian Markbage 2016-12-21 00:10:00 -08:00
  • 9a210114e4 Move isHostComponent branches out of bailout Sebastian Markbage 2016-12-21 00:05:46 -08:00
  • b7548b2030 Delete hasPendingUpdate Sebastian Markbage 2016-12-20 23:51:14 -08:00
  • 21dccad47f Move props equality check into each branch Sebastian Markbage 2016-12-20 23:47:37 -08:00
  • 0907a49abd Add bailout to HostRoot Sebastian Markbage 2016-12-21 11:34:13 -08:00
  • 5a32fdb8e5 Compare memoized props in functional component branch Sebastian Markbage 2016-12-20 22:41:38 -08:00
  • b4b21486aa Move all the begin work stuff into their own helper functions Sebastian Markbage 2016-12-20 21:36:35 -08:00
  • 38a297d500 Always reset context before beginning new work Sebastian Markbage 2016-12-20 20:56:02 -08:00
  • d47a3a36ee Merge pull request #8585 from acdlite/batchstateandcallback Andrew Clark 2016-12-21 13:24:08 -06:00
  • f4c0c99973 Remove enqueueCallback from updater API Andrew Clark 2016-12-21 13:03:39 -06:00
  • 29c1e1deba Schedule state and callback in the same batch Andrew Clark 2016-12-20 13:07:47 -08:00
  • afd4a54d2a Merge pull request #8610 from acdlite/fiberfixrooterror Andrew Clark 2016-12-20 18:02:02 -08:00
  • 15acbaa8e1 Handle errors thrown when committing root Andrew Clark 2016-12-20 15:34:44 -08:00
  • b49210f498 Update Flow to 0.37.0 (#8608) Sebastian Markbåge 2016-12-20 11:09:03 -08:00
  • 090e741c55 Merge pull request #8606 from acdlite/fiberhostrootupdatequeue Andrew Clark 2016-12-19 21:36:25 -08:00
  • b106ca0c8e Delete fiveArgumentPooler (#8597) dfrownfelter 2016-12-19 20:53:04 -08:00
  • 470da6ea77 Add test for errors in host config while working on failed root Andrew Clark 2016-12-19 18:46:13 -08:00
  • 6c26e98ec2 Handle case where host environment throws when working on failed root Andrew Clark 2016-12-19 18:06:56 -08:00
  • da4ace152b Remove unmountContainer Andrew Clark 2016-12-16 18:31:39 -08:00
  • c6ccc19095 Use an UpdateQueue for top-level updates Andrew Clark 2016-12-15 13:58:22 -08:00
  • ab19dd0292 Merge pull request #8605 from facebook/revert-8584-fiberhostrootupdatequeue Andrew Clark 2016-12-19 15:36:28 -08:00
  • 0b37588171 Revert "[Fiber] Queue top-level updates" Andrew Clark 2016-12-19 15:32:59 -08:00
  • ddc44b7add Merge pull request #8584 from acdlite/fiberhostrootupdatequeue Andrew Clark 2016-12-19 13:56:18 -08:00
  • 3c6d4bacdd Merge pull request #8594 from bvaughn/dont-warn-about-getInitialState-on-class-if-state-set Brian Vaughn 2016-12-17 14:28:20 -08:00
  • 1b868cbd71 Don't warn about class component usage of getInitialState if state is also set Brian Vaughn 2016-12-17 11:16:27 -08:00
  • a5e728747e Merge pull request #8590 from bvaughn/unexpected-context-pop Brian Vaughn 2016-12-17 07:41:25 -08:00
  • 70f704dca6 [Fiber] Nesting validation warnings (#8586) Dan Abramov 2016-12-16 18:57:58 -08:00
  • a9365b97e5 Remove unmountContainer Andrew Clark 2016-12-16 18:31:39 -08:00
  • d8ade83eb2 Use an UpdateQueue for top-level updates Andrew Clark 2016-12-15 13:58:22 -08:00
  • e1eccbfbb0 Merge pull request #8587 from acdlite/fiberupdatequeuefollowup Andrew Clark 2016-12-16 16:20:51 -08:00
  • 7b6c94c767 Don't drop updates from queue when calling replaceState Andrew Clark 2016-12-15 18:26:12 -08:00
  • 441cc5c82b bailoutOnLowPriority correct pushes context for ClassComponents to mirror complete phase context pop Brian Vaughn 2016-12-16 15:04:06 -08:00
  • f070aaa1b8 Remove confusing for-loop in favor of a helper function Andrew Clark 2016-12-15 18:15:03 -08:00
  • dfe3d089cc Clean up some style nits and other code detritus in the update queue Andrew Clark 2016-12-15 18:10:25 -08:00
  • ea622e52c2 Use warning instead of console.error Andrew Clark 2016-12-15 17:34:24 -08:00
  • 7fca464e7c Merge pull request #8538 from acdlite/fiberupdatequeue Andrew Clark 2016-12-15 16:41:53 -08:00
  • b8441ba955 Remove ForceUpdate effect Andrew Clark 2016-12-15 16:35:54 -08:00
  • 3a946fe094 Use 255 instead of infinity Andrew Clark 2016-12-14 13:42:03 -08:00
  • 496512f8b8 Update tests to not rely on key iteration order Andrew Clark 2016-12-13 20:09:19 -08:00
  • e1b733fa83 Move priority context change to findNextUnitOfWork Andrew Clark 2016-12-13 19:07:30 -08:00
  • df9603ead8 Simplify test for whether we should flush a pending commit Andrew Clark 2016-12-13 15:49:26 -08:00
  • eec431297a Priority context during reconciliation Andrew Clark 2016-12-13 15:05:56 -08:00
  • e0981b8bc5 Handle setState inside an updater function Andrew Clark 2016-12-13 13:57:54 -08:00
  • babace0c05 Add fast path for appending updates to the end of the queue Andrew Clark 2016-12-13 10:55:55 -08:00
  • d7f89b8681 Don't rely on commit phase effect to clear updates Andrew Clark 2016-12-12 23:53:14 -08:00
  • ead8ab7e2d Add unstable_deferredUpdates Andrew Clark 2016-12-12 13:32:00 -08:00
  • 20f00045d3 Apply pending updates in order of priority Andrew Clark 2016-12-11 13:13:54 -08:00
  • bb844a03b2 Use lastProgressedUpdate pointer instead of firstPendingUpdate Andrew Clark 2016-12-10 02:24:49 -08:00
  • 94011e98a6 Separate priority for updates Andrew Clark 2016-12-09 15:06:56 -08:00
  • cb1ef03df9 Replace .hasForceUpdate with ForceUpdate effect Andrew Clark 2016-12-09 12:47:18 -08:00
  • 6301086c35 Schedule callback effects while merging updates Andrew Clark 2016-12-09 11:44:31 -08:00
  • cbba5ef9cc Don't drop updates until they are committed Andrew Clark 2016-12-09 00:32:03 -08:00
  • e36b38c1ca [Fiber] Fix some of the warnings (#8570) Dan Abramov 2016-12-15 08:36:58 -08:00
  • ab72f626de Merge pull request #8560 from bvaughn/react-native-fiber Brian Vaughn 2016-12-14 20:05:17 -08:00
  • 5266ca9312 Added new fiber-based renderer for native dubbed ReactNativeFiber Brian Vaughn 2016-12-07 18:15:13 -08:00
  • ac241972bd mockImpl -> mockImplementation Ben Alpert 2016-12-14 14:21:28 -08:00
  • ba8f24ba99 Prepare new composite child before removing old (#8572) Ben Alpert 2016-12-14 11:14:50 -08:00
  • 931cad5aae Fix test renderer unmount (#8512) Gaëtan Renaudeau 2016-12-14 16:57:21 +01:00
  • 3def431543 Merge pull request #8568 from bvaughn/top-level-context-push-pop Brian Vaughn 2016-12-13 17:27:47 -08:00
  • b4745ca72b HostRoot no longer pops context provider in complete phase Also added an invariant warning to guard against context being popped too many times. Brian Vaughn 2016-12-13 17:26:19 -08:00
  • 480e404fc8 Merge pull request #8528 from acdlite/callbacksemantics Andrew Clark 2016-12-13 17:22:41 -08:00
  • 97b7d0eff5 Test top-level callback when re-rendering with same element Andrew Clark 2016-12-08 09:36:04 -08:00
  • a930f09dfe Give setState callbacks componentWillUpdate semantics Andrew Clark 2016-12-07 18:51:21 -08:00
  • bd425837a4 Merge pull request #8563 from sebmarkbage/enforcelowercasetags Sebastian Markbåge 2016-12-13 14:54:21 -08:00
  • 6c1592f384 Pass type to the relevant host config methods Sebastian Markbage 2016-12-13 14:37:06 -08:00
  • db489a4ade Only do runtime validation of tag names when createElement is not used Sebastian Markbage 2016-12-12 19:38:34 -08:00
  • 3092f63c6b Warn if upper-case tags are used Sebastian Markbage 2016-12-13 14:52:51 -08:00
  • ec8b94e847 Disable coverage on PRs on Circle (#8569) Ben Alpert 2016-12-13 14:27:25 -08:00
  • 369769aed4 Merge pull request #8558 from bvaughn/rename-initialize-core Brian Vaughn 2016-12-12 21:32:53 -08:00
  • 0f34bdc622 [Fiber] Remove array indirection in host context (#8544) Dan Abramov 2016-12-12 15:20:40 -08:00
  • ef532fd4a4 [Fiber] Fix portal bugs (#8532) Dan Abramov 2016-12-12 14:18:55 -08:00
  • cdb38c1478 Renamed InitializeJavaScriptAppEngine mock to InitializeCore. Brian Vaughn 2016-12-12 13:55:58 -08:00
  • 7b7c0e4af5 Renamed InitializeJavaScriptAppEngine to InitializeCore Brian Vaughn 2016-12-12 11:23:25 -08:00
  • 0a3256ac15 Merge pull request #8557 from bvaughn/add-create-text-instance-param Brian Vaughn 2016-12-12 11:20:46 -08:00
  • f8cb22ad83 Add rootContainerInstance param to createTextInstance. Brian Vaughn 2016-12-12 10:12:43 -08:00
  • 92665e2cb1 Fix casing typo in jsx-in-depth.md (#8542) comerc 2016-12-11 16:43:40 +03:00
  • 39695dcd36 update example to use this.state (#8425) Chris 2016-12-11 21:41:48 +08:00
  • 14f05bfa89 ReactDOMFiber-test Rename portal -> usePortal (#8535) Sebastian Markbåge 2016-12-08 14:22:53 -08:00
  • 6c785ed524 Add unit tests for event bubbling in portals (#8509) Sebastian Markbåge 2016-12-08 13:51:21 -08:00
  • 3937bca8a2 Merge pull request #8491 from sebmarkbage/fibercurrenteventhandlers Sebastian Markbåge 2016-12-08 13:49:51 -08:00
  • c87ffc0beb [Fiber] Support SVG (#8490) Dan Abramov 2016-12-08 13:10:47 -08:00
  • d77c42a26d Update CHANGELOG.md (#8518) Charlie Garcia 2016-12-08 14:07:53 -04:00
  • 2161a6c92f Fix indentation for lint Ben Alpert 2016-12-07 23:16:27 -08:00
  • f56eb89389 Add additional scheduling tests Andrew Clark 2016-12-07 22:47:20 -08:00
  • 3a7844cabb Consolidate workLoop and deferredWork loop Andrew Clark 2016-12-07 12:24:36 -08:00
  • 24a83a5eeb Extract commit phase passes into separate functions Andrew Clark 2016-12-07 11:42:42 -08:00
  • dcc17a966e Don't check for a pendingCommit on every iteration Andrew Clark 2016-12-06 19:19:11 -08:00