jonhoo / wewerewondering

wewerewondering.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New question disappear right after submission.

ghassanachi opened this issue · comments

New questions disappear right after submission, and only reappears when the next poll happens.

Video below shows the behaviour, though usually the question does not stick around for that long before disappearing (I'm assuming this is based on when during the poll the question is posted.

Screen.Recording.2022-12-04.at.8.27.22.PM.mov

That's interesting — we do have to be a little sneaky because, due to caching, the data from the server may not contain the just-submitted question yet, but that logic has been working fine for me. This is the localAdjustments stuff. I'd be curious what's making that act up here 🤔

Yea, I am not sure what was causing it either. When I logged the issue, it was happening consistently both on wewerewondering.com and my local instance. But since then I haven't been able to replicate the problem.

When I was unable to reproduce, I suspected it might have something to do with having two windows/tabs (host and client) open at the same time, since they share localStorage and we use those for adjustments, but after numerous attempts to reproduce the bug, it still has not cropped up again.

With that in mind I think it's probably find to close the issue, and if it happens again I'll do a little troubleshooting and reopen the issue if I find the root cause.