|
| 1 | +/** |
| 2 | + * Copyright (c) Meta Platforms, Inc. and affiliates. |
| 3 | + * |
| 4 | + * This source code is licensed under the MIT license found in the |
| 5 | + * LICENSE file in the root directory of this source tree. |
| 6 | + * |
| 7 | + * @flow |
| 8 | + */ |
| 9 | + |
| 10 | +// Renderers that don't support hydration |
| 11 | +// can re-export everything from this module. |
| 12 | + |
| 13 | +functionshim(...args: any): empty{ |
| 14 | +thrownewError( |
| 15 | +'react-noop-renderer does not support hydration. '+ |
| 16 | +'This error is likely caused by a bug in React. '+ |
| 17 | +'Please file an issue.', |
| 18 | +); |
| 19 | +} |
| 20 | + |
| 21 | +// Hydration (when unsupported) |
| 22 | +exporttypeActivityInstance=mixed; |
| 23 | +exporttypeSuspenseInstance=mixed; |
| 24 | +exportconstsupportsHydration=false; |
| 25 | +exportconstisSuspenseInstancePending=shim; |
| 26 | +exportconstisSuspenseInstanceFallback=shim; |
| 27 | +exportconstgetSuspenseInstanceFallbackErrorDetails=shim; |
| 28 | +exportconstregisterSuspenseInstanceRetry=shim; |
| 29 | +exportconstcanHydrateFormStateMarker=shim; |
| 30 | +exportconstisFormStateMarkerMatching=shim; |
| 31 | +exportconstgetNextHydratableSibling=shim; |
| 32 | +exportconstgetNextHydratableSiblingAfterSingleton=shim; |
| 33 | +exportconstgetFirstHydratableChild=shim; |
| 34 | +exportconstgetFirstHydratableChildWithinContainer=shim; |
| 35 | +exportconstgetFirstHydratableChildWithinActivityInstance=shim; |
| 36 | +exportconstgetFirstHydratableChildWithinSuspenseInstance=shim; |
| 37 | +exportconstgetFirstHydratableChildWithinSingleton=shim; |
| 38 | +exportconstcanHydrateInstance=shim; |
| 39 | +exportconstcanHydrateTextInstance=shim; |
| 40 | +exportconstcanHydrateActivityInstance=shim; |
| 41 | +exportconstcanHydrateSuspenseInstance=shim; |
| 42 | +exportconsthydrateInstance=shim; |
| 43 | +exportconsthydrateTextInstance=shim; |
| 44 | +exportconsthydrateActivityInstance=shim; |
| 45 | +exportconsthydrateSuspenseInstance=shim; |
| 46 | +exportconstgetNextHydratableInstanceAfterActivityInstance=shim; |
| 47 | +exportconstgetNextHydratableInstanceAfterSuspenseInstance=shim; |
| 48 | +exportconstfinalizeHydratedChildren=shim; |
| 49 | +exportconstcommitHydratedInstance=shim; |
| 50 | +exportconstcommitHydratedContainer=shim; |
| 51 | +exportconstcommitHydratedActivityInstance=shim; |
| 52 | +exportconstcommitHydratedSuspenseInstance=shim; |
| 53 | +exportconstflushHydrationEvents=shim; |
| 54 | +exportconstclearActivityBoundary=shim; |
| 55 | +exportconstclearSuspenseBoundary=shim; |
| 56 | +exportconstclearActivityBoundaryFromContainer=shim; |
| 57 | +exportconstclearSuspenseBoundaryFromContainer=shim; |
| 58 | +exportconsthideDehydratedBoundary=shim; |
| 59 | +exportconstunhideDehydratedBoundary=shim; |
| 60 | +exportconstshouldDeleteUnhydratedTailInstances=shim; |
| 61 | +exportconstdiffHydratedPropsForDevWarnings=shim; |
| 62 | +exportconstdiffHydratedTextForDevWarnings=shim; |
| 63 | +exportconstdescribeHydratableInstanceForDevWarnings=shim; |
| 64 | +exportconstvalidateHydratableInstance=shim; |
| 65 | +exportconstvalidateHydratableTextInstance=shim; |
0 commit comments