lbry-desktop/ui
infiinte-persistence 202269ebeb Web: Fix 'Download' not triggering until second attempt
## Issue
4669: `Download doesn't trigger on web until 2nd attempt`

The issue only happens when _Autoplay_ is disabled in the User Settings and the video hasn't been loaded when _Download_ is clicked.

The following code:
   `if (didClickDownloadButton && streamingUrl)`
didn't triggered because:
1. `streamingUrl` has not resolved yet when the Effect ran.
2. When it did resolve, the parent component was also notified and unmounted things, causing `didClickDownloadButton` to reset.

## Approach
Avoid the unnecessary unmounting by not using a conditional section wrapper within a return statement. React probably couldn't do the diffs when the conditional is at a section level.
2020-09-04 11:52:38 -04:00
..
component Web: Fix 'Download' not triggering until second attempt 2020-09-04 11:52:38 -04:00
constants add mark as seen to notifications 2020-08-21 16:04:27 -04:00
effects Revert "full width homepage" 2020-08-18 12:53:07 -04:00
modal Fix partially untranslated text in the Upgrade Modal 2020-09-04 11:51:31 -04:00
page Publishes => Uploads 2020-08-25 12:25:25 -04:00
redux fix first comment on post failing even when it is created successfully 2020-09-01 20:27:52 -04:00
scss Sidebar: Bring back the "Followed Tags" list 2020-09-04 11:50:02 -04:00
util provide share domain url configuration 2020-08-31 11:51:25 -04:00
analytics.js Revert "check matomo and disable if necessary" 2020-08-12 11:04:38 -04:00
app.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
i18n.js Improve auto string addition to produce better diffs and ease merging. 2020-07-08 15:01:05 -04:00
index.jsx Add lbry apis to config 2020-09-03 12:58:29 -04:00
logWarningConsoleMessage.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
native.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
reducers.js add search code from lbry-redux 2020-07-27 16:37:36 -04:00
rewards.js Publish => Upload 2020-07-27 10:48:05 -04:00
store.js all settings constants come from redux 2020-07-27 11:53:14 -04:00