From 784bb3f424edc2a470e7388963a3a73885efdf2f Mon Sep 17 00:00:00 2001 From: Stuart Taylor Date: Sat, 19 May 2018 22:11:30 +0100 Subject: [PATCH] Merge pull request #68 from Bouncey/fix/updatePreviewOnMount Update preview on mount --- .../templates/Challenges/redux/execute-challenge-epic.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/learn/src/templates/Challenges/redux/execute-challenge-epic.js b/packages/learn/src/templates/Challenges/redux/execute-challenge-epic.js index 90b4f5d321..f705613fa6 100644 --- a/packages/learn/src/templates/Challenges/redux/execute-challenge-epic.js +++ b/packages/learn/src/templates/Challenges/redux/execute-challenge-epic.js @@ -42,7 +42,11 @@ function updateMainEpic(actions, { getState }, { document }) { const proxyLogger = new Subject(); const frameMain = createMainFramer(document, getState, proxyLogger); const buildAndFrameMain = actions.pipe( - ofType(types.updateFile, types.executeChallenge), + ofType( + types.updateFile, + types.executeChallenge, + types.challengeMounted + ), debounceTime(executeDebounceTimeout), switchMap(() => buildFromFiles(getState(), true)