- Adds Web workers and does evaluations in off the main thread - Removes any need to store functions in the data tree and only keeps them around while evaluating - Maintains a stored data tree in the redux state - Evaluates based on editor events instead of state changes
14 lines
407 B
TypeScript
14 lines
407 B
TypeScript
import { ReduxAction, ReduxActionTypes } from "constants/ReduxActionConstants";
|
|
|
|
export const batchAction = (action: ReduxAction<any>) => ({
|
|
type: ReduxActionTypes.BATCHED_UPDATE,
|
|
payload: action,
|
|
});
|
|
|
|
export type BatchAction<T> = ReduxAction<ReduxAction<T>>;
|
|
|
|
export const batchActionSuccess = (actions: ReduxAction<any>[]) => ({
|
|
type: ReduxActionTypes.BATCH_UPDATES_SUCCESS,
|
|
payload: actions,
|
|
});
|