child: new StoreConnector( onInit: (store){ store.dispatch(new ClearErrorsAction()); store.dispatch(new CheckTokenAction()); }, onDidChange: (viewModel){ if(viewModel.tokenReqeust == true){ if(viewModel.token.isEmpty()){ // TODO run animation }else{ //TODO Navigate to home } } }, converter: (store) => LoginViewModel.fromStore(store), builder: (_, viewModel) => content(viewModel,constraints), ),