1.0.0-beta.4 • Published 4 years ago
@thorgate/spa-pending-data v1.0.0-beta.4
@thorgate/spa-pending-data
Pending data manager used by Thorgate project template SPA variant
view-manager package uses @thorgate/spa-pending-data
to store current
loading status of the app in Redux state.
Usage:
Some where in your app:
import { isViewLoading, loadingActions } from '@thorgate/spa-pending-data';
import { getLocation } from 'connected-react-router';
import { select, take } from 'redux-saga/effects';
export function* waitLoadingDone() {
const location = yield select(getLocation);
const loadedView = yield select(getLoadedView);
if (loadedView === location.key) {
return;
}
yield take(loadingActions.setLoadedView.getType());
}
PendingDataManager
is designed to show previous location until loadingActions.setLoadedView
is set to currently active location in react-router
context.
1.0.0-beta.4
4 years ago
1.0.0-beta.2
4 years ago
1.0.0-beta.0
4 years ago
1.0.0-alpha.39
6 years ago
1.0.0-alpha.37
6 years ago
1.0.0-alpha.30
6 years ago
1.0.0-alpha.28
6 years ago
1.0.0-alpha.25
6 years ago
1.0.0-alpha.24
6 years ago
1.0.0-alpha.23
6 years ago
1.0.0-alpha.22
6 years ago
1.0.0-alpha.21
6 years ago
1.0.0-alpha.14
6 years ago
1.0.0-alpha.7
6 years ago
1.0.0-alpha.6
7 years ago
1.0.0-alpha.5
7 years ago
1.0.0-alpha.4
7 years ago
1.0.0-alpha.3
7 years ago
1.0.0-alpha.2
7 years ago
1.0.0-alpha.1
7 years ago