diff --git a/app/client/src/sagas/EvaluationsSaga.ts b/app/client/src/sagas/EvaluationsSaga.ts index a81d24267f..302ec13d8a 100644 --- a/app/client/src/sagas/EvaluationsSaga.ts +++ b/app/client/src/sagas/EvaluationsSaga.ts @@ -646,6 +646,7 @@ function* evalAndLintingHandler( } function* evaluationChangeListenerSaga(): any { + const firstEvalActionChannel = yield actionChannel(FIRST_EVAL_REDUX_ACTIONS); // Explicitly shutdown old worker if present yield all([call(evalWorker.shutdown), call(lintWorker.shutdown)]); const [evalWorkerListenerChannel] = yield all([ @@ -669,8 +670,9 @@ function* evaluationChangeListenerSaga(): any { yield spawn(handleEvalWorkerRequestSaga, evalWorkerListenerChannel); const initAction: EvaluationReduxAction = yield take( - FIRST_EVAL_REDUX_ACTIONS, + firstEvalActionChannel, ); + firstEvalActionChannel.close(); // Wait for widget config build to complete before starting evaluation only if the current editor is not a workflow const isCurrentEditorWorkflowType = yield select(