lbry-desktop/ui/redux
infinite-persistence 5638f64831
New version nudge (#1793)
## Ticket
1329

The existing nudge to refresh the webpage only happens when the app cannot find the specific javascript file in the server. As we don't purge the files on each build, the browser typically uses the cached version of the app, which could be weeks behind (based on the error logs).

## Approach
Poll the current version periodically (set to 1 hour for now) and invoke the nudge when a newer version is detected.

We typically don't need to bump `MINIMUM_VERSION` unless there is an urgent need to make users move away from older versions (e.g. API changes, mistakes, etc.)

## Trade-offs
Wanted to put the value in a separate file called `.min.version` so that the env's history won't be polluted with version bumps, but not sure how to implement with minimal code without having to read from the file. Getting from the env is the easiest to implement (per my limited knowledge).
2022-07-05 09:14:32 -04:00
..
actions New version nudge (#1793) 2022-07-05 09:14:32 -04:00
middleware Sync: handle fast-actions being reverted 2021-12-29 10:32:38 -05:00
reducers tus: don't allow 'notify' to be sent again (#1778) 2022-06-30 19:30:08 -04:00
selectors Bump weekly-watch auto claim interval (#1794) 2022-07-05 06:44:40 -04:00