Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/use-swr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ export const useSWRHandler = <Data = any, Error = any>(
refreshWhenOffline
} = config

// SWR should throw when trying to suspend on the server:
// https://github.com/vercel/swr/issues/1832
if (IS_SERVER && suspense) {
console.warn('Suspense mode is not supported on the server side.')
}

const [EVENT_REVALIDATORS, STATE_UPDATERS, MUTATION, FETCH] =
SWRGlobalState.get(cache) as GlobalState

Expand Down