Ensured server is properly loaded before trying to render any children component

This commit is contained in:
Alejandro Celaya
2020-03-05 08:59:07 +01:00
parent 853032ac7f
commit bc8905ee7f
9 changed files with 2 additions and 16 deletions

View File

@@ -28,7 +28,6 @@ export default handleActions({
export const getShortUrlDetail = (buildShlinkApiClient) => (shortCode, domain) => async (dispatch, getState) => {
dispatch({ type: GET_SHORT_URL_DETAIL_START });
const { getShortUrl } = await buildShlinkApiClient(getState);
try {

View File

@@ -51,7 +51,6 @@ export default handleActions({
export const getShortUrlVisits = (buildShlinkApiClient) => (shortCode, query) => async (dispatch, getState) => {
dispatch({ type: GET_SHORT_URL_VISITS_START });
const { getShortUrlVisits } = await buildShlinkApiClient(getState);
const itemsPerPage = 5000;
const isLastPage = ({ currentPage, pagesCount }) => currentPage >= pagesCount;