Simplify example in naming conventions for sources

This commit is contained in:
Brett Sun 2016-01-15 13:58:15 +01:00
parent f4eef6b7c8
commit b3d6620f73
1 changed files with 3 additions and 7 deletions

View File

@ -22,12 +22,8 @@ refreshApplicationToken
we cannot repeat this for a sources' methods as patterns like this would emerge in the stores:
```javascript
onFetchCurrentUser(invalidateCache) {
this.invalidateCache = invalidateCache;
if(!this.getInstance().isLoading()) {
this.getInstance().fetchCurrentUser(); // does not call a flux "action" but a method in user_source.js - which is confusing
}
onFetchCurrentUser() {
this.getInstance().fetchCurrentUser(); // does not call a flux "action" but a method in user_source.js - which is confusing
}
```
@ -67,4 +63,4 @@ lookupCurrentUser: {
UserActions.logoutCurrentUser
UserStore.onLogoutCurrentUser
UserSource.performLogoutCurrentUser
```
```