Dan Abramov
cd98e63b47
[Fresh] Fall back to Map/Set if Weak equivalents are not available ( #15907 )
...
* Fall back to Map/Set if Weak equivalents are not available
* Fix Prettier vs Flow fighting
2019-06-17 16:00:29 +01:00
Dan Abramov
a3c5b1fb8b
[Fresh] Rename findHostNodesForHotUpdate to findHostInstancesForHotUpdate ( #15904 )
2019-06-17 15:06:43 +01:00
Brian Vaughn
a6d3f30f95
Initial support for hydration added to both renderer interfaces.
2019-06-16 17:32:37 -07:00
Sebastian Markbåge
7985bf7d50
Remove outdated test renderer comments ( #15898 )
2019-06-15 16:09:17 -07:00
Dan Abramov
f0156766dc
[Fresh] react-fresh => react-refresh ( #15888 )
2019-06-15 19:36:46 +01:00
Justin Grant
a15f776708
fix: ensure when-rendered content is never hidden
2019-06-15 09:24:37 -07:00
Brian Vaughn
801feed95c
Interaction tracing works across hidden and SSR hydration boundaries ( #15872 )
...
* Interaction tracing works across hidden and SSR hydration boundaries
2019-06-14 18:08:23 -07:00
Andrew Clark
661562fc52
Fix outdated test comments ( #15892 )
...
Comments for this unit test are confusing because they refer to an
earlier version of the same test.
2019-06-14 16:51:27 -07:00
Andrew Clark
788da69b74
[Suspense] Fix bad loading state not being delayed ( #15891 )
...
Fixes a bug where a bad loading state is initially suspended, but a
subsequent update with the same expiration time causes it to
commit immediately.
2019-06-14 16:10:39 -07:00
Dominic Gannaway
353e0ee474
[Flare] remove stopLocalPropagation option + modify responder ownership ( #15889 )
2019-06-14 23:11:54 +01:00
Dominic Gannaway
a146c1f9ed
[Flare] Refactor of Press to fix various issues ( #15878 )
2019-06-14 22:52:26 +01:00
Dan Abramov
de7a09c1e0
[Fresh] Make transform resilient to plugin order ( #15883 )
...
* Run Fresh tests in two modes: with and without destructuring
Destructuring transform messes up the way we collect signatures for Hooks. This adds failing tests.
* Extract collecting calls to Hooks into a separate visitor
This introduces a bit of a perf penalty but makes our plugin resilient to presence of destructuring transform and their order. Fixes new tests.
* Inline some logic into the call visitor
2019-06-14 14:57:20 +01:00
Andrew Clark
2fe8fd290b
[Suspense] Use style.setProperty to set display ( #15882 )
...
Follow up to #15861 .
Turns out you can't set `!important` using a normal property assignment.
You have to use `style.setProperty`.
Maybe Andrew *should* just learn CSS.
IE9 doesn't support `style.setProperty` so we'll fall back to setting
`display: none` without `important`, like we did before #15861 Our
advice for apps that need to support IE9 will be to avoid using
`!important`. Which seems like good advice in general, but IANACSSE.
Tested on FB and using our Suspense DOM fixture.
2019-06-13 18:17:17 -07:00
Andrew Clark
b4b3a1dc66
Fix fuzz test environment variable
2019-06-13 15:59:35 -07:00
Andrew Clark
e91dd70ba2
Remove disableYielding feature flag ( #15654 )
...
Obviated by Batched Mode.
2019-06-13 15:58:40 -07:00
Brian Vaughn
5e8678a0a9
Don't send HTMLElements through the bridge when inspecting componetns
2019-06-13 09:09:31 -07:00
Brian Vaughn
9eb6d3465d
Updated React version check to account for older (<15) versions
2019-06-12 18:56:39 -07:00
Brian Vaughn
96f7646a1a
Updated hydration logic to handle custom objects
2019-06-12 15:43:15 -07:00
Brian Vaughn
cb10c3d6da
Lintfix
2019-06-12 15:17:29 -07:00
Brian Vaughn
f6ec82553d
Support toggling Suspense from within owners list
2019-06-12 15:13:51 -07:00
Brian Vaughn
f0a29984f4
Merge pull request #320 from gaearon/own
...
Fix owner tree for legacy backend
2019-06-12 09:58:17 -07:00
Dan
4bfabbc32b
Fix owner tree for legacy backend
2019-06-12 17:56:25 +01:00
Brian Vaughn
2e40cc4b18
Merge pull request #319 from gaearon/legacy-fix
...
Fix some legacy backend bugs
2019-06-12 09:36:20 -07:00
Dan
fdf753021e
Distinguish functions and classes
2019-06-12 17:23:29 +01:00
Dan
3137553f6d
State and context are on the public instance
2019-06-12 16:50:15 +01:00
Dan
f352fe2625
Maintain rootID for lazily crawled trees
2019-06-12 16:38:35 +01:00
Dan
b5850fe304
Ignore SSR mounts
2019-06-12 16:15:58 +01:00
Timothy Yung
4d949d7641
[React Native] Replace touch discrepancy errors to warnings ( #15866 )
2019-06-12 11:37:41 +01:00
Dominic Gannaway
45acbdc0ba
[Flare] Unsure root events are removed on contextmenu ( #15862 )
2019-06-12 02:19:02 +01:00
Andrew Clark
198ed661c5
[Suspense] Use !important to hide Suspended nodes ( #15861 )
...
Suspended nodes are hidden using an inline `display: none` style. We do
this instead of removing the nodes from the DOM so that their state is
preserved when they are shown again.
Inline styles have the greatest specificity, but they are superseded by
`!important`. To prevent an external style from overriding React's, this
commit changes the hidden style to `display: none !important`.
MaYBE AnDREw sHOulD JusT LEArn Css
I attempted to write a unit test using `getComputedStyle` but JSDOM
doesn't respect `!important`. I think our existing tests are sufficient
but if we were to decide we need something more robust, I would set up
an e2e test.
2019-06-11 11:40:06 -07:00
Dan Abramov
191920605f
[Fresh] Implement missing features ( #15860 )
...
* Fix existing test
This test included a change in variable name. It wasn't needed, and distracts from the actual thing being tested (the annotation).
* Reset state on edits to initial state argument
* Add a way to check whether there are hot updates
prepareUpdate() now returns null if there are none.
* Add a way to query host nodes for families
2019-06-11 19:37:42 +01:00
Brian Vaughn
6c8ae706ee
Merge pull request #316 from gaearon/lighter
...
Make children selection lighter
2019-06-11 07:13:01 -07:00
Dan Abramov
3bca6b28cd
Make children selection lighter
2019-06-10 20:10:24 -06:00
Brian Vaughn
a08e9279ec
Merge pull request #315 from bvaughn/settings
...
Settings panel inlined
2019-06-10 15:44:23 -07:00
Brian Vaughn
dd748ef574
Moved logic to only send updated filters across Bridge to the Store (and added tests)
2019-06-10 15:36:29 -07:00
Brian Vaughn
91e3f6cd4d
Removed console.log
2019-06-10 15:05:12 -07:00
Brian Vaughn
e2e598c824
Remember last preferences tab via local storage
2019-06-10 15:03:05 -07:00
Brian Vaughn
19ed98d0c2
Removed Settings panel in favor of new shared Settings modal
2019-06-10 14:57:26 -07:00
Brian Vaughn
402a68d816
Fixed minor border bug in Profiling tab toolbar
2019-06-10 11:14:27 -07:00
Dominic Gannaway
c403ae4d35
[Flare] Move Press root event removal till click phase ( #15854 )
2019-06-10 19:08:53 +01:00
Dominic Gannaway
f4cd7a38d2
[Flare] Listen to document.body + add stopPropagation to Press ( #15853 )
2019-06-10 16:51:26 +01:00
Brian Vaughn
37c331533d
Merge pull request #173 from bvaughn/legacy
...
Support legacy React versions
2019-06-09 16:24:00 -07:00
Brian Vaughn
e66fcaf17d
Nit
2019-06-09 16:22:23 -07:00
Brian Vaughn
8f53235017
Fixed regression fixtures
2019-06-09 16:16:06 -07:00
Brian Vaughn
80bf1ba0eb
Merge branch 'master' into legacy
2019-06-09 16:00:12 -07:00
Brian Vaughn
ea03ddd583
Added Flow type coverage for all EventEmitter subclasses
2019-06-09 15:50:17 -07:00
Brian Vaughn
b3046c6e19
Merge pull request #310 from bvaughn/track-changed-props
...
Add profiling option to track why a component rendered
2019-06-08 17:45:46 -07:00
Brian Vaughn
3904d634bb
Added an explicit 'did not render' label
2019-06-08 17:36:17 -07:00
Brian Vaughn
341d1574cb
Tweaked a few inline comments
2019-06-08 17:30:11 -07:00
Brian Vaughn
9047f371e2
Fix minor toolbar border misalignment
2019-06-08 17:18:05 -07:00