Brian Vaughn
456e937b83
Merge pull request #178 from gaearon/removal-integrity
...
Assert removal happens in the right order
2019-04-18 08:16:22 -07:00
Dan Abramov
d02d93712e
Assert removal happens in the right order
2019-04-18 16:02:08 +01:00
Brian Vaughn
08279fb342
Merge pull request #174 from robertknight/mousedown-tab-select
...
Select tab when the mouse is pressed
2019-04-18 08:00:01 -07:00
Brian Vaughn
d995f19339
Merge pull request #175 from lucasecdb/assign-timeout
...
Assign timeoutID to avoid multiple requests
2019-04-18 07:56:32 -07:00
Lucas Cordeiro
6df050e726
Assign timeoutID to avoid multiple requests
2019-04-18 06:46:06 -03:00
Robert Knight
c2865dbab9
Select tab when the mouse is pressed
...
Selecting the tab when the mouse is pressed rather than only when it is
released makes tab switching feel faster and also matches how the Chrome dev
tools behave.
The previous tab selection handler which listens for the radio button's
selection has been kept for the benefit of interaction methods which
don't trigger the mousedown handler.
2019-04-18 08:16:52 +01:00
Brian Vaughn
29811cd24e
Added legacy (v15) tests
2019-04-17 15:30:20 -07:00
Brian Vaughn
7ab93402a8
Initial support for v15+ via new legaacy renderer
2019-04-17 14:36:15 -07:00
Brian Vaughn
0d932d770b
Merge pull request #168 from bvaughn/collapse-nodes-by-default
...
Configurable tree default collapsed/expanded behavior
2019-04-17 13:29:25 -07:00
Brian Vaughn
75e1e1431b
Expanded the reorder tests slightly
2019-04-17 13:11:18 -07:00
Nicolas Gallagher
0b50fb29f7
Include rootEventTypes in DOMEventResponderSystem stopPropagation tests ( #15433 )
2019-04-17 13:08:36 -07:00
Brian Vaughn
634d4fece2
Added more inline comments
2019-04-17 13:03:18 -07:00
Brian Vaughn
29d43a2230
Merge pull request #171 from bvaughn/improve-contrast-light-mode
...
Improve contrast for light mode
2019-04-17 11:44:25 -07:00
Brian Vaughn
3fb9f6cdaa
Improve contrast for light mode
2019-04-17 11:40:55 -07:00
Nicolas Gallagher
1ae409d2c7
React events: fix nested Hover components error ( #15428 )
...
* Add failing test for nested Hover
* Fix error caused by nested Hover event components
2019-04-17 11:33:32 -07:00
Brian Vaughn
c107e03132
Flow fix
2019-04-17 09:45:03 -07:00
Brian Vaughn
74be389124
Fixed a bug with re-ordering of children within a collapsed node
2019-04-17 09:39:54 -07:00
Brian Vaughn
178e89927a
Fixed some edge cases with collapsed by default. Still some bugs existing.
2019-04-17 07:45:33 -07:00
Brian Vaughn
037bb0034c
Throw if root node is collapsed
2019-04-16 14:10:06 -07:00
Brian Vaughn
4b64d7c017
Support configurable node/tree collapsed by default behavior
2019-04-16 13:59:36 -07:00
Nicolas Gallagher
c73ab39c1f
React events: make nested Focus work as expected ( #15421 )
...
This patch makes a change to the Focus module so that it only reports
focus/blur on the host node that's a direct child of the event component. This
brings the expected behaviour in line with the browser default of focus/blur
events not bubbling for Pressable.
2019-04-16 11:16:27 -07:00
Dan Abramov
85179fe4a7
Merge pull request #164 from gaearon/fix-lots-of-stuff
...
Fix reordering and Suspense logic
2019-04-16 19:11:28 +01:00
Dan Abramov
3a6d656090
Remove unnecessary condition
2019-04-16 19:10:39 +01:00
Dan Abramov
9182d0b0aa
Bump alpha to get Andrew's fix
2019-04-16 19:09:52 +01:00
Dan Abramov
58bb7cea41
Remove unused lines
2019-04-16 18:21:40 +01:00
Dan Abramov
8576c85b0d
Move stress tests to their own file
2019-04-16 18:10:15 +01:00
Dan Abramov
d4db178d33
Bump to canary
2019-04-16 17:39:26 +01:00
Dan Abramov
3cf67ab859
Harden the tests and fix Flow
2019-04-16 17:02:42 +01:00
Dan Abramov
b1dea26251
Fix the remaining issue when primary child is null
...
This lets us unlock the rest of the Suspense test.
2019-04-16 16:57:10 +01:00
Dan Abramov
fe21ee7ca0
Enable part of Suspense test that was failing before
...
This PR fixes it.
2019-04-16 16:47:26 +01:00
Dan Abramov
f4e223bceb
When resetting Suspense children, use the fallback child set if needed
...
This fixes the bug I introduced in the previous refactor which Suspense test caught.
2019-04-16 16:45:56 +01:00
Dan Abramov
dd935ea178
Propagate the need to reset children to closest visible Fiber
...
This fixes the bug.
2019-04-16 16:34:08 +01:00
Dan Abramov
57e8513a30
Refactor: remove early returns from updateFiberRecursively
...
This doesn't change any logic, just the shape of the control flow.
I want to unify some branches at the end, so it's easier if there are no early returns.
2019-04-16 16:34:08 +01:00
Dan Abramov
f4c3008cf5
Refactor: split recordUpdate() into profiling and reorder
...
This doesn't change the actual algorithm but splits unrelated parts.
2019-04-16 16:34:08 +01:00
Dan Abramov
b081ffc518
Add stress test for reordering
2019-04-16 16:34:08 +01:00
Brian Vaughn
20193f03c0
Merge pull request #162 from gaearon/suspense-test
...
Add Suspense stress test
2019-04-16 07:49:11 -07:00
Dan
d89f79d6e6
Add Suspense stress test
2019-04-16 00:14:49 +01:00
Andrew Clark
4221565e15
Cancel pending commit before starting on root
...
Moves the cancelTimeout call to right before creating a new work-in-
progress root. Fixes a class of bugs where a pending commit is not
cancelled, causing an incomplete tree to accidentally commit.
In the interest of fixing downstream bugs quickly, I'm landing this
without a test case; I'll add one in a follow up.
2019-04-15 16:00:18 -07:00
Brian Vaughn
8c974ae432
Flow and lint fix
2019-04-15 09:43:52 -07:00
Brian Vaughn
97636fa7fc
Merge pull request #161 from gaearon/fast
...
Don't materialize typed array until the transfer
2019-04-15 09:40:33 -07:00
Brian Vaughn
2b3ecc63b3
Merge pull request #158 from gaearon/stress-test
...
Add a stress test for tree traversal
2019-04-15 09:34:40 -07:00
Dan Abramov
6b9b80faac
Don't materialize typed array until the transfer
2019-04-15 16:27:19 +01:00
Brian Vaughn
b3546e0e02
Merge pull request #160 from gaearon/add-prod-shell
...
Add production mode to dev shell
2019-04-15 07:40:39 -07:00
Dan Abramov
947e3c2c04
Add production mode to dev shell
2019-04-15 15:39:25 +01:00
Brian Vaughn
7489b8508b
Merge pull request #159 from gaearon/l-to-the-r-to-the-u
...
Use LRU for encoded strings
2019-04-15 07:09:10 -07:00
Dan Abramov
255385d255
Use LRU for encoded strings
2019-04-15 14:42:12 +01:00
Dan
f569d27f86
Add a stress test for tree traversal
2019-04-15 01:52:15 +01:00
Brian Vaughn
b76372c93d
Fixed an edge case profiling bug where the number of commits was wrong
2019-04-13 18:29:39 -07:00
Brian Vaughn
7f6fdfea95
Add package commands for creating dev builds for easier debugging
2019-04-13 18:25:56 -07:00
Brian Vaughn
00f6466ec1
Temporarily disabled hooks lint failure for Tree useEffect
2019-04-13 15:49:06 -07:00