react/scripts
Sebastian Markbåge 7ec4c55971
createRoot(..., {hydrate:true}) -> hydrateRoot(...) (#21687)
This adds a new top level API for hydrating a root. It takes the initial
children as part of its constructor. These are unlike other render calls
in that they have to represent what the server sent and they can't be
batched with other updates.

I also changed the options to move the hydrationOptions to the top level
since now these options are all hydration options.

I kept the createRoot one just temporarily to make it easier to codemod
internally but I'm doing a follow up to delete.

As part of this I un-dried a couple of paths. ReactDOMLegacy was intended
to be built on top of the new API but it didn't actually use those root
APIs because there are special paths. It also doesn't actually use most of
the commmon paths since all the options are ignored. It also made it hard
to add only warnings for legacy only or new only code paths.

I also forked the create/hydrate paths because they're subtly different
since now the options are different. The containers are also different
because I now error for comment nodes during hydration which just doesn't
work at all but eventually we'll error for all createRoot calls.

After some iteration it might make sense to break out some common paths but
for now it's easier to iterate on the duplicates.
2021-06-15 13:37:53 -07:00
..
babel Fix "missing flag" error for non-boolean types (#18592) 2020-04-13 12:57:31 -07:00
bench make link https (#19147) 2020-06-30 12:43:52 +01:00
circleci lint-build: Infer format from artifact filename (#21489) 2021-05-12 10:14:45 -07:00
error-codes createRoot(..., {hydrate:true}) -> hydrateRoot(...) (#21687) 2021-06-15 13:37:53 -07:00
eslint Pass extra CLI args through to ESLint (#20250) 2020-11-13 11:00:45 -08:00
eslint-rules Cross-fork lint: Support named export declaration (#20784) 2021-02-10 11:01:52 -08:00
flow [React Native] Fabric get current event priority (#21553) 2021-06-08 12:26:21 -04:00
git Remove leftover env variable logic in pre-commit hook 2015-09-01 14:35:47 -07:00
jest Deprecate ReactDOM.render and ReactDOM.hydrate (#21652) 2021-06-09 13:46:55 -07:00
merge-fork Add --reverse option to replace-fork script (#20249) 2020-11-13 11:09:02 -08:00
perf-counters Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
prettier Fixture: Legacy JSX Runtimes (#20012) 2020-10-14 18:28:03 +01:00
print-warnings Ignore node_modules when printing warnings (#20363) 2020-12-01 08:01:16 -08:00
release Fix tag validation 2021-06-08 11:53:43 -04:00
rollup Use the server src files as entry points for the builds/tests (#21683) 2021-06-14 16:23:19 -07:00
shared Merge /unstable-fizz entry point into /server (#21684) 2021-06-14 18:37:44 -07:00
tasks Parallelize Flow in CI (#20794) 2021-02-10 17:54:58 -06:00
yarn chore: upgrade to jest 24 (#15778) 2019-10-03 22:44:18 +05:30
authors AUTHORS 2013-09-09 23:42:54 -07:00