3

If you go to your favorites, follow the link through to unfavorite on the page, press the browsers back button to return the favorites page, the post is still visible because of the browsers cache, clicking to unfavorite here results the page counter-intuitively becoming a favorite again. Would it be possible to check if the favorite status on the client and server are in sync before toggling the favorite?

5
  • 3
    Back deliberately shows you the state of the page before you left it. The only way I can see to do this would be to async load the questions in to avoid an edge case, introducing pointless lag for the 99.9% of times this doesn't happen
    – Zelda
    Commented Mar 2, 2013 at 17:53
  • I was thinking more about a check on state displayed on the client and state on the sever when the user unfavorites on the page. Commented Mar 2, 2013 at 18:01
  • Perhaps separate the unfavorite and favorite commands in to two post commands rather than a togle Commented Mar 2, 2013 at 18:02
  • Then if out of sync ignore the request Commented Mar 2, 2013 at 18:05
  • Either that or don't change the state client so the client side becomes in sync with the server again. Commented Mar 2, 2013 at 18:07

1 Answer 1

0

This is pretty minor, to my knowledge you're the first person to notice it since favorites were introduced. Furthermore I can think of at least 3 other places where similar disconnects with toggle-able states and history are possible, that I'm fairly certain no one's every reported.

Any "fix" would also be a bit cumbersome, either throwing a message up or not toggling... but only on the first click; and would be a special case for favorites.

Not worth changing basically.

1
  • ok its a special case to remember Commented Mar 5, 2013 at 18:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .