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
Hi all! I have decided to attempt to move majority of my API function to SWR as it simply allows me to do so much more!
Problem
However I am having a huge issue where I cannot figure out how to properly pass headers into SWR, I've looked at the docs and more and yet nothing seems to do the trick. I am using Twitch API, Next.js and NextAuth for handling tokens, sessions, etc. I have left my github repo bellow along with the code I am currently trying to use.
Seriously any help would be huge! - I am also no pro so don't be to harsh lol!
Note:
I console log the error return if an error occurs yet, when I access the page /dash it says failed to load yet there is no console log of an error?
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all! I have decided to attempt to move majority of my API function to SWR as it simply allows me to do so much more!
Problem
However I am having a huge issue where I cannot figure out how to properly pass headers into SWR, I've looked at the docs and more and yet nothing seems to do the trick. I am using Twitch API, Next.js and NextAuth for handling tokens, sessions, etc. I have left my github repo bellow along with the code I am currently trying to use.
Seriously any help would be huge! - I am also no pro so don't be to harsh lol!
Note:
I console log the error return if an error occurs yet, when I access the page
/dash
it saysfailed to load
yet there is no console log of an error?Github Repo
Beta Was this translation helpful? Give feedback.
All reactions