http-react
Advanced tools
Comparing version 3.7.1 to 3.7.2
@@ -939,3 +939,11 @@ 'use client'; | ||
if (!hasInitialOrFallbackData) { | ||
throw new Error(`Request with id "${id}" uses suspense but no fallback data was provided for SSR. See https://httpr.vercel.app/docs/fetch_config/defaults`); | ||
throw new Error(`Request with id "${id}" uses suspense but no fallback data was provided for SSR. See https://httpr.vercel.app/docs/fetch_config/defaults. | ||
If you want to use suspense without fallback data, wrap with the <Suspense> component from 'http-react', which renders <React.Suspense> client-side and the fallback ui server-side: | ||
import { Suspense } from "http-react" | ||
Learn more: https://httpr.vercel.app/docs/api#suspense | ||
`); | ||
} | ||
@@ -942,0 +950,0 @@ } |
{ | ||
"name": "http-react", | ||
"version": "3.7.1", | ||
"version": "3.7.2", | ||
"description": "React hooks for data fetching", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
233785
5446