Skip to content

Commit 4bd3c44

Browse files
committed
Make the clear button wipe the REPL context
1 parent 76fb316 commit 4bd3c44

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sagas/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ function* interpreterSaga(): SagaIterator {
4343
yield put(actions.clearReplInput())
4444
yield* evalCode(code, context)
4545
})
46+
47+
yield takeEvery(actionTypes.CLEAR_REPL_OUTPUT, function*() {
48+
yield put(actions.clearContext())
49+
})
4650
}
4751

4852
function* mainSaga() {

0 commit comments

Comments
 (0)