1.0.0-beta.4 • Published 2 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
2 years ago
1.0.0-beta.2
3 years ago
1.0.0-beta.0
3 years ago
1.0.0-alpha.39
5 years ago
1.0.0-alpha.37
5 years ago
1.0.0-alpha.30
5 years ago
1.0.0-alpha.28
5 years ago
1.0.0-alpha.25
5 years ago
1.0.0-alpha.24
5 years ago
1.0.0-alpha.23
5 years ago
1.0.0-alpha.22
5 years ago
1.0.0-alpha.21
5 years ago
1.0.0-alpha.14
5 years ago
1.0.0-alpha.7
5 years ago
1.0.0-alpha.6
5 years ago
1.0.0-alpha.5
5 years ago
1.0.0-alpha.4
5 years ago
1.0.0-alpha.3
5 years ago
1.0.0-alpha.2
5 years ago
1.0.0-alpha.1
5 years ago