Re:Approach to detect if end user press F5 or refresh button
by _RPM on Sunday November 22, 2015 @11:48PM
(#10612914)
It might be a good idea to add a timestamp to the local storage item, preferably make it a JSON string. Then decide a reasonable amount of time between a "refresh" to count it as an actual refresh
Re:Approach to detect if end user press F5 or refresh button
by cswangpeng on Monday November 23, 2015 @12:49AM
(#10613089)
it is very important for single page application. In such application we need detect this from framework routing entry.
Also, what happens when someone has 2 tabs open with the app, closes one and tries to do some action in the other?
Edit: What I really want to ask is... why is this ever necessary?