@react-aria/ssr
Advanced tools
Comparing version
@@ -71,3 +71,3 @@ var $14Xyt$react = require("react"); | ||
if (typeof (0, ($parcel$interopDefault($14Xyt$react)))['useId'] === 'function') { | ||
if (process.env.NODE_ENV !== 'test' && !$97d95f6660b1bb14$var$warnedAboutSSRProvider) { | ||
if (process.env.NODE_ENV !== 'test' && process.env.NODE_ENV !== 'production' && !$97d95f6660b1bb14$var$warnedAboutSSRProvider) { | ||
console.warn('In React 18, SSRProvider is not necessary and is a noop. You can remove it from your app.'); | ||
@@ -124,3 +124,3 @@ $97d95f6660b1bb14$var$warnedAboutSSRProvider = true; | ||
// provide a warning to hint to the developer to add one. | ||
if (ctx === $97d95f6660b1bb14$var$defaultContext && !$97d95f6660b1bb14$var$canUseDOM) console.warn('When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.'); | ||
if (ctx === $97d95f6660b1bb14$var$defaultContext && !$97d95f6660b1bb14$var$canUseDOM && process.env.NODE_ENV !== 'production') console.warn('When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.'); | ||
let counter = $97d95f6660b1bb14$var$useCounter(!!defaultId); | ||
@@ -127,0 +127,0 @@ let prefix = ctx === $97d95f6660b1bb14$var$defaultContext && process.env.NODE_ENV === 'test' ? 'react-aria' : `react-aria${ctx.prefix}`; |
@@ -59,3 +59,3 @@ import $670gB$react, {useContext as $670gB$useContext, useState as $670gB$useState, useMemo as $670gB$useMemo, useLayoutEffect as $670gB$useLayoutEffect, useRef as $670gB$useRef} from "react"; | ||
if (typeof (0, $670gB$react)['useId'] === 'function') { | ||
if (process.env.NODE_ENV !== 'test' && !$b5e257d569688ac6$var$warnedAboutSSRProvider) { | ||
if (process.env.NODE_ENV !== 'test' && process.env.NODE_ENV !== 'production' && !$b5e257d569688ac6$var$warnedAboutSSRProvider) { | ||
console.warn('In React 18, SSRProvider is not necessary and is a noop. You can remove it from your app.'); | ||
@@ -112,3 +112,3 @@ $b5e257d569688ac6$var$warnedAboutSSRProvider = true; | ||
// provide a warning to hint to the developer to add one. | ||
if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM) console.warn('When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.'); | ||
if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM && process.env.NODE_ENV !== 'production') console.warn('When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.'); | ||
let counter = $b5e257d569688ac6$var$useCounter(!!defaultId); | ||
@@ -115,0 +115,0 @@ let prefix = ctx === $b5e257d569688ac6$var$defaultContext && process.env.NODE_ENV === 'test' ? 'react-aria' : `react-aria${ctx.prefix}`; |
{ | ||
"name": "@react-aria/ssr", | ||
"version": "3.0.0-nightly-b4695c8fd-250307", | ||
"version": "3.0.0-nightly-b7f8ed1a9-250516", | ||
"description": "Spectrum UI components in React", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
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
Sorry, the diff of this file is not supported yet
70436
0.88%15
66.67%