I got an error while using getStaticProps
Unanswered
Silver posted this in #help-forum
SilverOP
I am sending request to server, and it causes me an error of local storage is not defined although i am not doing any local storage use here.
15 Replies
@Silver I am sending request to server, and it causes me an error of local storage is not defined although i am not doing any local storage use here.
do you use local storage on the page?
SilverOP
nope
could you show the code on
getAllCourses?SilverOP
@Silver Click to see attachment
ok could you show the code on
getRequest?SilverOP
here getToken is internally using localhsot
thats why?
yes you got it
SilverOP
so is there any another way to do it?
i am currently using then useEffect
it should be fine using it on useEffect
SilverOP
okkay!
SilverOP
btw thanks @Ray for helping me out with quick replies and insights