mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Simplify example in naming conventions for sources
This commit is contained in:
parent
f4eef6b7c8
commit
b3d6620f73
@ -22,13 +22,9 @@ 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()) {
|
||||
onFetchCurrentUser() {
|
||||
this.getInstance().fetchCurrentUser(); // does not call a flux "action" but a method in user_source.js - which is confusing
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Therefore we're introducing the following naming convention:
|
||||
|
Loading…
Reference in New Issue
Block a user