Skip to content

Commit

Permalink
Update src/use-swr.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding authored Apr 19, 2022
1 parent 4922d9f commit a4525fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/use-swr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ export const useSWRHandler = <Data = any, Error = any>(
// https://github.com/vercel/swr/issues/1832
if (!IS_REACT_LEGACY && IS_SERVER) {
throw new Error(
'Fallback data is required to use suspense on the server side.'
'Fallback data is required when using suspense in SSR.'
)
}

Expand Down

0 comments on commit a4525fd

Please sign in to comment.