MarshallOfSound / MarshallOfSound/react-electron-web-view

webview state persistence thru routing

Open
#9 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
64
Forks
33
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing how the React wrapper handles the webview when components mount and unmount, with the issue's react-router routing scenario in mind. Investigate Electron WebView lifecycle behavior; done means returning to a route preserves the existing webview content instead of reloading it.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, javascript, react
Domain
desktop, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.