When I write a comment with github\'s issue page, I noticed that the comment body remains even if I reload the browser.
I have checked localStorage, session
They are using SessionStorage
to do this:
On Page Leave:
.js-session-resumable
as selectorSessionStorage
as session-resume:/current/page/path
On Page Load:
session-resume:/current/page/path
key in SessionStorage
SessionStorage
Note: If you write a comment in a page (without submitting it) and go to another page, then you can see your comment saved in SessionStorage
.