@react-stately/toast
Advanced tools
Comparing version 3.0.0-nightly.3725 to 3.0.0-nightly.3728
var $1uBRd$swchelperslib_define_propertyjs = require("@swc/helpers/lib/_define_property.js"); | ||
var $1uBRd$react = require("react"); | ||
var $1uBRd$usesyncexternalstoreshim = require("use-sync-external-store/shim"); | ||
var $1uBRd$usesyncexternalstoreshimindexjs = require("use-sync-external-store/shim/index.js"); | ||
@@ -56,3 +56,3 @@ function $parcel$export(e, n, v, s) { | ||
]); | ||
let visibleToasts = (0, $1uBRd$usesyncexternalstoreshim.useSyncExternalStore)(subscribe, getSnapshot); | ||
let visibleToasts = (0, $1uBRd$usesyncexternalstoreshimindexjs.useSyncExternalStore)(subscribe, getSnapshot, getSnapshot); | ||
return { | ||
@@ -59,0 +59,0 @@ visibleToasts: visibleToasts, |
import $jopoU$swchelperssrc_define_propertymjs from "@swc/helpers/src/_define_property.mjs"; | ||
import {useMemo as $jopoU$useMemo, useCallback as $jopoU$useCallback} from "react"; | ||
import {useSyncExternalStore as $jopoU$useSyncExternalStore} from "use-sync-external-store/shim"; | ||
import {useSyncExternalStore as $jopoU$useSyncExternalStore} from "use-sync-external-store/shim/index.js"; | ||
@@ -46,3 +46,3 @@ /* | ||
]); | ||
let visibleToasts = (0, $jopoU$useSyncExternalStore)(subscribe, getSnapshot); | ||
let visibleToasts = (0, $jopoU$useSyncExternalStore)(subscribe, getSnapshot, getSnapshot); | ||
return { | ||
@@ -49,0 +49,0 @@ visibleToasts: visibleToasts, |
{ | ||
"name": "@react-stately/toast", | ||
"version": "3.0.0-nightly.3725+d7cb26e27", | ||
"version": "3.0.0-nightly.3728+cb1fc23c8", | ||
"description": "Spectrum UI components in React", | ||
@@ -37,3 +37,3 @@ "license": "Apache-2.0", | ||
}, | ||
"gitHead": "d7cb26e27cac7b43f6fdff68ce4c10c1185d1bb3" | ||
"gitHead": "cb1fc23c8f9efce828f774858aaf3a06a19b49a2" | ||
} |
@@ -15,3 +15,3 @@ /* | ||
// Shim to support React 17 and below. | ||
import {useSyncExternalStore} from 'use-sync-external-store/shim'; | ||
import {useSyncExternalStore} from 'use-sync-external-store/shim/index.js'; | ||
@@ -83,3 +83,3 @@ export interface ToastStateProps { | ||
let getSnapshot = useCallback(() => queue.visibleToasts, [queue]); | ||
let visibleToasts = useSyncExternalStore(subscribe, getSnapshot); | ||
let visibleToasts = useSyncExternalStore(subscribe, getSnapshot, getSnapshot); | ||
@@ -86,0 +86,0 @@ return { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
72549