lbry-desktop/ui/redux/selectors
infinite-persistence 4267c1ccf7
Un-authenticated resolve (#341)
* apiCall: add option to not send the auth header

## Why
Want an option to make un-authenticated `resolve` calls where appropriate, to improve caching.

## How
All `apiCall`s are authenticated by default, but when clients add NO_AUTH to the params, `apiCall` will exclude the X_LBRY_AUTH_TOKEN. It will also strip NO_AUTH from the param object before sending it out.

* Add hook for 'resolve' and 'claim_search' to check and skip auth...

... if the params does not contain anything that requires the wallet.

* doResolveUri, doClaimSearch: let clients decide when to include_my_output

- No more hardcoding 'include_purchase_receipt' and 'include_is_my_output'
- doResolveUri: include these params when opening a file page. This was the only place that was doing that prior to this PR.

* is_my_output: use the signing_channel as alternative

## Notes
`is_my_output` is more expensive to resolve, so it is not being requested all the time.

## Change
Looking at the signing channel as the additional fallback, on top of `myClaimIds`.

## Aside
I think using `myClaimIds` here is redundant, as it is usually populated from `is_my_ouput`. But leaving as is for now...
2021-11-24 09:33:34 -05:00
..
app.js Fix memo: stake indicator 2021-11-11 10:23:28 +08:00
blocked.js Skip muted list update if no change 2021-10-19 21:15:26 +08:00
claims.js Un-authenticated resolve (#341) 2021-11-24 09:33:34 -05:00
coinSwap.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
collections.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
comments.js Un-authenticated resolve (#341) 2021-11-24 09:33:34 -05:00
content.js Cost Info selector fixes 2021-11-19 16:01:25 +08:00
file_info.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
livestream.js Cache the processing of ChannelMentionSuggestions (#309) 2021-11-17 11:47:56 -05:00
notifications.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
publish.js Support resume-able upload via tus (#186) 2021-11-10 13:16:16 -05:00
reactions.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
reportContent.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
rewards.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
search.js Simplify makeSelectIsUriResolving 2021-11-16 14:32:58 +08:00
settings.js Kill makeSelectClientSetting 2021-11-23 12:29:53 +08:00
subscriptions.js Cache subscription uris if we're gonna map it often. 2021-11-17 18:16:00 +08:00
sync.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
tags.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
user.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00
wallet.js Don't memoize selectors without transformation 2021-10-24 13:05:06 +08:00