Closed moui72 closed 3 years ago
I've rewritten this logic so that counts are no longer incremented server-side, but instead the true count is returned from the server on successful up/down vote. This should resolve the problem.
This looks good, thanks!
if I go from the index page (i.e. http://openlabdev.org/webwork-playground/) to a question view (e.g. http://openlabdev.org/webwork-playground/#:problemId=local/CoordinatePlaneTrig/six-trig-point-q1.pg:questionId=11457) and then like (or have already liked during previous session) and then use browser back to return to index, there will be 1 more like than is correct, but refresh fixes.
to be clear:
Item 1 is liked by user A User A sees 1 like on index for item 1 User A navigates to question view for item 1 User A sees 1 like on question view for item 1 User A uses browser back button to return to index User A sees 2 likes for item 1 User A refreshes User A sees 1 like on index view for item 1
from @boonebgorges