react-server icon indicating copy to clipboard operation
react-server copied to clipboard

Skip re-render on back nav in Safari

Open gigabo opened this issue 8 years ago • 0 comments

Webkit's page cache keeps a suspended page available for re-activation on back/forward navigation. The history navigation API also fires a popstate event, though, which triggers an unnecessary re-render. We can skip this.

About the page cache: https://webkit.org/blog/427/webkit-page-cache-i-the-basics/

gigabo avatar Oct 17 '17 21:10 gigabo