10 Replies
I can't see your function screenshot.
I can see now, I had to zoom in. Before it won't zoom. 😂
In
CreateCourse.jsx
, is setChapterState a prop?I think the main problem here is
{userAuth.access_token===null?<Navigate to ="/Sign-in"/>
// :loading?"Loading.."
:courseState=="course"?<CreateCourse/>
:""}
how ot fix it
check console.log
if its redirecting
to sign -in
if thats what happens
then ur issignedin checks in
and reloads the page
thats why even thought ur chapterform gets sets to true
but a reload happens
which put everything back in step 1
what
can we so share screeing?
it will take a quite while
it will be better
if i have the code
and check in with few tests