@react-stately/toast
Advanced tools
Comparing version 3.0.0-alpha.0 to 3.0.0-alpha.1
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-alpha.0", | ||
"version": "3.0.0-alpha.1", | ||
"description": "Spectrum UI components in React", | ||
@@ -37,3 +37,3 @@ "license": "Apache-2.0", | ||
}, | ||
"gitHead": "a0efee84aa178cb1a202951dfd6d8de02b292307" | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72534