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
I'm trying to get SWR working with R18's streaming SSR. I'm basically copying what the folks are doing at exhibitionist-digital/ultra but I'm running into an error client-side. Uncaught TypeError: _a2 is undefined
The error is occurring here. Like I said, I basically copied what they did in Ultra which works fine. I'm creating a cache on the server (new map()) and passing that to the SWRConfig as seen here, and on the client it reads the cache from the globalThis. This is all working, the data is passed down and I can read the cache with useSWRConfig. But it throws when it reaches useSWR().
I'm happy to provide more information, but I'm wondering if anyone has some idea what is happening. Like if there is something I should be seeing in the cache that I'm not, or what _a2 is supposed to refer to.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I'm trying to get SWR working with R18's streaming SSR. I'm basically copying what the folks are doing at exhibitionist-digital/ultra but I'm running into an error client-side.
Uncaught TypeError: _a2 is undefined
The error is occurring here. Like I said, I basically copied what they did in Ultra which works fine. I'm creating a cache on the server (
new map()
) and passing that to the SWRConfig as seen here, and on the client it reads the cache from the globalThis. This is all working, the data is passed down and I can read the cache with useSWRConfig. But it throws when it reaches useSWR().I'm happy to provide more information, but I'm wondering if anyone has some idea what is happening. Like if there is something I should be seeing in the cache that I'm not, or what _a2 is supposed to refer to.
Cheers
Beta Was this translation helpful? Give feedback.
All reactions