Last active
October 27, 2018 07:53
-
-
Save swat-cat/192aa7992a20f6f89f57ed0ab08faf35 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| child: new StoreConnector<AppState,LoginViewModel>( | |
| 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), | |
| ), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment