lbry-desktop/ui
infinite-persistence 251187de06
useGetThumbnail: fetch streaming_url instead of generating it.
In the first attempt (PR 1497, 4d44d81f), the `generateStreamUrl` was tweaked to fetch a `Lbry.get`, which returns a promise.  On top of a few async issues on its own, we also can't just simply `await` here since render functions need to be pure.

Fortunately, there is already redux structure for `get`, and Sean happened to already be passing all the required stuff here (sight beyond sight!), so it's just a matter of calling it.

Again, render functions need to be pure, so the fetch has be in an effect, so the component might take several renders to get the image painted. But oddly this seems to avoid the occurrence of showing the fallback spaceman image (just an observation, no proof of correlation).
2022-05-13 18:19:20 +08:00
..
component 1317: Log and send totalPlayingTime 2022-05-12 18:35:20 -04:00
constants Update /$/live to use latest API 2022-05-11 07:57:44 -04:00
contexts Category: Hide "Repost" from ContentType filter, except for WildWest 2022-04-25 08:49:46 -04:00
effects useGetThumbnail: fetch streaming_url instead of generating it. 2022-05-13 18:19:20 +08:00
modal Fix crashing when uri has spaces 2022-05-02 09:39:01 -04:00
page Fix 'freshness' filter not working in Category Pages 2022-05-12 15:37:01 +08:00
redux Recsys: pass isFollowing and incognito 2022-05-12 18:35:20 -04:00
scss Suppress latest floater ad 2022-05-11 10:24:43 -04:00
util Revert "Replace generateStreamUrl for Lbry get call" 2022-05-12 18:16:03 -04:00
analytics.js Thumbnail improvements 2022-03-21 13:13:25 -04:00
app.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
comments.js Remove custom comments server 2022-02-03 10:24:58 -05:00
i18n.js Add env to auto report new strings in console 2022-01-05 00:26:31 -08:00
index.jsx Consolidate legal/requirements fetch 2022-03-17 10:25:59 -04:00
lbry.js Restore SDK error logging, limiting to support_create. 2022-05-12 08:43:59 -04:00
logWarningConsoleMessage.js new lbc icon 2020-09-29 17:12:32 -04:00
native.js working 2020-12-16 10:52:22 -05:00
reducers.js Support resume-able upload via tus (#186) 2021-11-10 13:16:16 -05:00
rewards.js Change logic for daily reward claiming to weekly 2021-12-23 02:40:58 -05:00
store.js Patch to restore position upon returning to video until more fully fleshed out fix can be introduced (#817) 2022-02-07 12:51:26 -05:00