lbry-desktop/ui/effects
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
..
use-ad-outbrain.js Patch for outbrain visibility (e68bba1d) 2022-04-06 11:35:13 +08:00
use-combined-refs.js fixes button hover 2019-11-19 16:28:59 -05:00
use-connection-status.js Fix "you are offline" nag being stuck 2021-12-22 12:41:05 +08:00
use-debounce.js Add channel list filter 2022-02-01 10:20:00 -05:00
use-drag-drop.js Paste/drop images directly to markdown editor 2022-04-01 12:36:49 -04:00
use-fetch-live.js refactor 2022-03-16 16:36:50 -04:00
use-fetch-view-count.js Membership subscriptions (#812) 2022-03-09 13:05:37 -05:00
use-fetched.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
use-get-ads.js fetch ads provider for all homepage videos (but still only show ads for unauth users) 2021-04-26 16:38:33 -04:00
use-get-last-visible-slot.js Generalize useGetLastVisibleSlot 2022-04-18 19:06:02 +08:00
use-get-thumbnail.js useGetThumbnail: fetch streaming_url instead of generating it. 2022-05-13 18:19:20 +08:00
use-get-user-memberships.js cleanup 2022-03-22 16:07:05 -04:00
use-hover.js fix: better hover use-effect 2020-04-23 13:10:41 -04:00
use-interval.js Switch unnecessary let to const 2022-03-02 20:20:27 -08:00
use-is-mounted.js prevent state updates after component unmounted 2020-05-13 10:18:36 -04:00
use-lazy-loading.js Fallback image for <FileThumbnail> 2021-08-17 19:46:54 -07:00
use-lighthouse.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
use-on-resize.js fix useScreensize 2022-02-07 10:18:50 -05:00
use-persisted-state.js MAKE ODYSEE EVEN MORE BEAUTIFUL (#539) 2022-02-11 13:50:55 -05:00
use-play-next.js Improve livestream claimLink embeds 2022-03-16 16:36:50 -04:00
use-previous.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
use-resolve-pins.js Swap pinnedUrls vs. pinnedClaimIds precedence 2022-04-01 11:35:29 -04:00
use-screensize.js Remove isTouch from use-screensize.js -- it's not an effect 2022-04-14 10:29:01 -04:00
use-stream-file.js prevent state updates after component unmounted 2020-05-13 10:18:36 -04:00
use-stream.js flow fixes 2020-12-16 10:52:22 -05:00
use-throttle.js Refactor channelMention suggestions into new textareaSuggestions component 2021-12-09 15:35:40 -05:00
use-thumbnail.js Consolidate timeout thumbnail effect 2022-03-17 10:06:50 -04:00
use-tween.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00