MarshallOfSound / react-electron-web-view

A simple wrapper to make Electrons WebView compatible with React
MIT License
64 stars 30 forks source link

webview state persistence thru routing #9

Open brandonmp opened 7 years ago

brandonmp commented 7 years ago

I'm using this in an SPA w/ react-router. when I change routes & return to the route with the webview, it starts from scratch & reloads the webview page. the page in my webview guest has a lengthy-ish load time, so the UX gets pretty ugly.

This isn't unexpected behavior necessary, but I'm curious if there's a straightforward way to persist the webview content across component mount/unmounting?