Moderator
I mean, how are you using appwrite?
Votes
0
Replies
24
Participants
Unknown
Messages
25
Moderator
I mean, how are you using appwrite?
Rank 2: Process
To be honest, I don't know, I'm just following the documentation. What is the difference
Moderator
Moderator
True?
Rank 2: Process
Yes.
Moderator
If @joeyouss or @Steven could take a look into this issue?
Rank 2: Process
Thank you so much, I'll appreciate it a lot. This has been giving me anxiety.
Moderator
Yes, it's a bit weird. I suppose it's more like a mistake in the code, but if they could take a look I think it's going to be better, since I have less experience with Js/web frameworks, etc
Rank 2: Process
Thank you so much.
Moderator
If you're using any web framework, specify it here, to make it easier to find the problem
Rank 2: Process
I'm using React
Rank 2: Process
The app had been working fine until yesterday (I'm still working on the app though).
Moderator
Maybe there's a conflict with the changes you've made?
Rank 2: Process
Well, I don't think that's the problem. But I'll check again
Rank 2: Process
You were right!. I just checked it and I noticed there is a bug that dosen't immediately update the local storage since React setState updates are asynchronous
Moderator
So that solves it?
Moderator
Seems like then it overwrites what appwrite stored (session)?
Rank 2: Process
It should. Once I figure out how to fix the bug 😆 .
Moderator
Be careful that doesn't creates another new bug 😅 (the bug fix)
Rank 2: Process
The appwrite stored session works fine. I monitored it in the storage tab in my browser, Once I log out, the session is removed and once I log in, it is restored which I guess is should be the expected behavior.
Rank 2: Process
I hope so too 😅 . I'll have to brush up on how React handles state updates. Something new to learn 😅 . Thank so much for your help.
Moderator
Can I mark this as solved then?
Moderator
If you continue having the problem write here again or create a new post
Rank 2: Process
You can! Thank You.
Moderator
[SOLVED] Session expired error