fix: resolve circular dependencies

This commit is contained in:
Valeriy
2019-01-03 01:03:43 +03:00
committed by Stuart Taylor
parent f902a2e83a
commit 871eacacd6
4 changed files with 10 additions and 9 deletions

View File

@@ -12,6 +12,8 @@ import {
challengeMetaSelector
} from './';
import { types as appTypes } from '../../../redux';
import { setContent, isPoly } from '../utils/polyvinyl';
const legacyPrefixes = [
@@ -60,7 +62,7 @@ function isFilesAllPoly(files) {
function clearCodeEpic(action$, state$) {
return action$.pipe(
ofType(types.submitComplete, types.resetChallenge),
ofType(appTypes.submitComplete, types.resetChallenge),
tap(() => {
const { id } = challengeMetaSelector(state$.value);
store.remove(id);