lbry-desktop/ui/redux/selectors/coinSwap.js
infinite-persistence 27f346d8f1
Don't memoize selectors without transformation
It was not meant to be used for these cases -- wasting resources creating and going through the cache for each simple direct access.
2021-10-24 13:05:06 +08:00

7 lines
193 B
JavaScript

// @flow
type State = { coinSwap: CoinSwapState };
const selectState = (state: State) => state.coinSwap || {};
export const selectCoinSwaps = (state: State) => selectState(state).coinSwaps;