improve pending over refreshes

This commit is contained in:
zeppi 2021-06-24 18:06:08 -04:00 committed by jessopb
parent 4f6740d1f8
commit 59f0c85aca
4 changed files with 9 additions and 4 deletions

View file

@ -147,7 +147,7 @@
"imagesloaded": "^4.1.4",
"json-loader": "^0.5.4",
"lbry-format": "https://github.com/lbryio/lbry-format.git",
"lbry-redux": "lbryio/lbry-redux#508e8d36fd91106beb7d6b4edb9f726dae0e6264",
"lbry-redux": "lbryio/lbry-redux#1948f633781256049674cb34e31ca2bc0b50b661",
"lbryinc": "lbryio/lbryinc#8f9a58bfc8312a65614fd7327661cdcc502c4e59",
"lint-staged": "^7.0.2",
"localforage": "^1.7.1",

View file

@ -23,6 +23,7 @@ import {
DAEMON_SETTINGS,
SETTINGS,
selectMyChannelClaims,
doCheckPendingClaims,
} from 'lbry-redux';
import { Lbryio } from 'lbryinc';
import { selectFollowedTagsList } from 'redux/selectors/tags';
@ -550,6 +551,7 @@ export function doSignIn() {
if (notificationsEnabled) {
dispatch(doNotificationList());
}
dispatch(doCheckPendingClaims());
// @if TARGET='web'
dispatch(doBalanceSubscribe());

View file

@ -60,6 +60,7 @@ const appFilter = createFilter('app', [
'splashAnimationEnabled',
'activeChannel',
]);
const claimsFilter = createFilter('claims', ['pendingById']);
// We only need to persist the receiveAddress for the wallet
const walletFilter = createFilter('wallet', ['receiveAddress']);
const searchFilter = createFilter('search', ['options']);
@ -68,8 +69,9 @@ const subscriptionsFilter = createFilter('subscriptions', ['subscriptions']);
const blockedFilter = createFilter('blocked', ['blockedChannels']);
const coinSwapsFilter = createFilter('coinSwap', ['coinSwaps']);
const settingsFilter = createBlacklistFilter('settings', ['loadedLanguages', 'language']);
const collectionsFilter = createFilter('collections', ['builtin', 'saved', 'unpublished', 'edited']);
const collectionsFilter = createFilter('collections', ['builtin', 'saved', 'unpublished', 'edited', 'pending']);
const whiteListedReducers = [
'claims',
'fileInfo',
'publish',
'wallet',
@ -85,6 +87,7 @@ const whiteListedReducers = [
];
const transforms = [
claimsFilter,
fileInfoFilter,
walletFilter,
blockedFilter,

View file

@ -7225,9 +7225,9 @@ lazy-val@^1.0.4:
yargs "^13.2.2"
zstd-codec "^0.1.1"
lbry-redux@lbryio/lbry-redux#508e8d36fd91106beb7d6b4edb9f726dae0e6264:
lbry-redux@lbryio/lbry-redux#1948f633781256049674cb34e31ca2bc0b50b661:
version "0.0.1"
resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/508e8d36fd91106beb7d6b4edb9f726dae0e6264"
resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/1948f633781256049674cb34e31ca2bc0b50b661"
dependencies:
proxy-polyfill "0.1.6"
reselect "^3.0.0"