diff --git a/src/features/session/actionCreators.js b/src/features/session/actionCreators.js index 840e2f2..d6a5aab 100644 --- a/src/features/session/actionCreators.js +++ b/src/features/session/actionCreators.js @@ -15,8 +15,11 @@ export function loadServerSessions() { } export function loadSessionForwards(sessionId) { - return async function (dispatch) { + return async function (dispatch, getState) { try { + const forwards = getState().forwards[sessionId]; + if (forwards && (forwards.loading || forwards.loaded)) return; + dispatch({ type: types.LOAD_SESSION_FORWARDS_STARTED, id: sessionId }); const data = await dispatch( sendHttpRequest(api.getSessionForwards(sessionId))