Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New API for top-level updates #10624

Closed
wants to merge 24 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
ae24a13
[Work-in-progress] Assign expiration times to updates
acdlite Aug 9, 2017
9a58ba2
Replace pendingWorkPriority with expiration times
acdlite Aug 10, 2017
6d1e2d8
Triangle Demo should use a class
acdlite Aug 11, 2017
383c50e
Use a magic value for task expiration time
acdlite Aug 11, 2017
466c746
Use current time to calculate expiration time
acdlite Aug 11, 2017
7900fed
Add unit tests for expiration and coalescing
acdlite Aug 11, 2017
a0df0b6
Delete unnecessary abstraction
acdlite Aug 11, 2017
4cd7cbe
Move performance.now polyfill to ReactDOMFrameScheduling
acdlite Aug 11, 2017
e26e737
Add expiration to fuzz tester
acdlite Aug 12, 2017
2bbd1c5
Expiration nits
acdlite Oct 8, 2017
70b82f7
Initial version of blocking & top-level resuming
acdlite Aug 18, 2017
3d5c12b
Change DOM renderer Container type to a union of String | DOMContainer
acdlite Aug 19, 2017
9154198
Split UpdateQueue functions to make it more generic
acdlite Aug 25, 2017
1fe313a
API for prerendering a top-level update and deferring the commit
acdlite Sep 6, 2017
792c810
Fix UpdateQueue flow types
acdlite Sep 6, 2017
4ea93cd
Completion callbacks resolve synchronously if tree is already complete
acdlite Sep 8, 2017
e73da46
renderer.create -> renderer.createRoot
acdlite Sep 8, 2017
d3fa711
Change optional type to optional parameter
acdlite Sep 8, 2017
14cf748
Process completion callbacks immediately after completing a root
acdlite Sep 9, 2017
e2abf2e
Add test for `then` resolving synchronously for sync updates
acdlite Sep 9, 2017
a4be91e
Committing a update on one root should not flush work on another root
acdlite Sep 11, 2017
a8f3335
Add hydration API
acdlite Sep 13, 2017
9a2ac61
Split scheduleUpdate into scheduleUpdate and scheduleWork.
acdlite Oct 4, 2017
9297052
Simplify top-level blockers
acdlite Oct 6, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change optional type to optional parameter
  • Loading branch information
acdlite committed Oct 9, 2017
commit d3fa7112c1d5bfabbeb54175ad410440c0d8eedd
4 changes: 2 additions & 2 deletions src/renderers/dom/fiber/ReactDOMFiberEntry.js
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ type PublicRoot = {

function PublicRootNode(
container: DOMContainer | (() => DOMContainer),
namespace: ?string,
namespace?: string,
) {
if (typeof container === 'function') {
if (typeof namespace !== 'string') {
Expand Down Expand Up @@ -858,7 +858,7 @@ PublicRootNode.prototype.unmount = function(callback) {
var ReactDOMFiber = {
unstable_createRoot(
container: DOMContainer | (() => DOMContainer),
namespace: ?string,
namespace?: string,
): PublicRoot {
return new PublicRootNode(container, namespace);
},
Expand Down