import { Action , Actor , IMap } from 'iflux2' ; export default class FilterActor extends Actor { defaultState ( ) { return { filterStatus : '' } ; } @ Action ( 'filter' ) changeFilter ( state , status ) { return state . set ( 'filterStatus' , status ) ; } @ Action ( 'init' ) init ( state , filterStatus ) { return state . set ( 'filterStatus' , filterStatus ) ; } }