You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After #1832, useSWR() throws an error when executing on the server with React 18, even when running on a simulated runtime such as react-ssr-prepass.
Would you consider a flag for SWR config that would preserve the previous behavior: throwing the promise even on React 18 + server?
I’d be happy to create the PR for it if this gets the green light.
The text was updated successfully, but these errors were encountered:
After #1832,
useSWR()
throws an error when executing on the server with React 18, even when running on a simulated runtime such asreact-ssr-prepass
.Would you consider a flag for SWR config that would preserve the previous behavior: throwing the promise even on React 18 + server?
I’d be happy to create the PR for it if this gets the green light.
The text was updated successfully, but these errors were encountered: