Use 'selectHasChannel' instead of the full 'selectMyChannelClaims' #7427

Merged
jessopb merged 1 commit from hasChannels into master 2022-01-21 18:38:11 +01:00

1 commit

Author SHA1 Message Date
infinite-persistence 4c914d7027 Use 'selectHasChannel' instead of the full 'selectMyChannelClaims'
- selectMyChannelClaims depends on `byId`, which currently is always invalidated per update, so it is not memoized.

- Most of the use-cases just needs the ID or the length of the array anyways, so avoid generating a Claim array (in selectMyChannelClaims) unnecessarily -- the client need to reduce it back down to IDs again :/

- The simpler boolean also removes the need to memoize the selector, which saves a bit of memory.
2022-01-20 17:50:32 -05:00