|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
1.3 KB
|
| Rev | Line | |
|---|
| [a762898] | 1 | /**
|
|---|
| 2 | * @license React
|
|---|
| 3 | * use-sync-external-store.development.js
|
|---|
| 4 | *
|
|---|
| 5 | * Copyright (c) Meta Platforms, Inc. and affiliates.
|
|---|
| 6 | *
|
|---|
| 7 | * This source code is licensed under the MIT license found in the
|
|---|
| 8 | * LICENSE file in the root directory of this source tree.
|
|---|
| 9 | */
|
|---|
| 10 |
|
|---|
| 11 | "use strict";
|
|---|
| 12 | if ("production" !== process.env.NODE_ENV) {
|
|---|
| 13 | "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|---|
| 14 | "function" ===
|
|---|
| 15 | typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
|
|---|
| 16 | __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|---|
| 17 | var useSyncExternalStore$jscomp$inline_1 =
|
|---|
| 18 | require("react").useSyncExternalStore;
|
|---|
| 19 | console.error(
|
|---|
| 20 | "The main 'use-sync-external-store' entry point is not supported; all it does is re-export useSyncExternalStore from the 'react' package, so it only works with React 18+.\n\nIf you wish to support React 16 and 17, import from 'use-sync-external-store/shim' instead. It will fall back to a shimmed implementation when the native one is not available.\n\nIf you only support React 18+, you can import directly from 'react'."
|
|---|
| 21 | );
|
|---|
| 22 | exports.useSyncExternalStore = useSyncExternalStore$jscomp$inline_1;
|
|---|
| 23 | "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|---|
| 24 | "function" ===
|
|---|
| 25 | typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
|---|
| 26 | __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|---|
| 27 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.