import { OrderedSet } from 'immutable' ; import { Action , State , AppHistory } from '../interfaces' ; export default class LoadAction extends Action { prevState : State ; constructor ( readonly newState ) { super ( ) ; } prepare ( h ) { this . prevState = h . state ; return h ; } next ( state ) { return state . merge ( this . newState ) . set ( 'selIdSet' , OrderedSet ( ) ) ; } prev ( state ) { return this . prevState ; } getMessage ( ) { return `Load.` ; } }