dillon1000/react

Commit

[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
Browse files
Changed paths7 files
First-parent comparison
M packages/react-fresh/src/ReactFreshBabelPlugin.js ModifiedM packages/react-fresh/src/ReactFreshRuntime.js ModifiedM packages/react-fresh/src/__tests__/ReactFresh-test.js ModifiedM packages/react-fresh/src/__tests__/ReactFreshIntegration-test.js ModifiedM packages/react-fresh/src/__tests__/__snapshots__/ReactFreshBabelPlugin-test.js.snap ModifiedM packages/react-reconciler/src/ReactFiberHotReloading.js ModifiedM packages/react-reconciler/src/ReactFiberReconciler.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…