lbry-desktop/ui/component/claimPreviewTile
infinite-persistence 8c06dab10f
ClaimPreviewTile: fix render violations and onHidden logic
## Issues
- Not safe to call the parent callback from the render function. It must be called from an effect or
- `onHidden` is only called when blacklisted, but it can also be hidden from other circumstances.
  - While those other circumstances doesn't apply for FYP (the first client that relies on `onHidden`, it's incorrect from a code perspective, unless it is renamed to `onBlacklisted`.

## Change
- Move the callback execution into an effect.
- Ensure `onHidden` is for all situations that it is hidden.
2022-05-23 14:49:53 +08:00
..
index.js Livestream tile/list: show viewer count if data is available 2022-04-15 08:24:30 -04:00
view.jsx ClaimPreviewTile: fix render violations and onHidden logic 2022-05-23 14:49:53 +08:00