Created
February 12, 2015 20:57
-
-
Save goatslacker/364daaa2e6fa5c6a1daa to your computer and use it in GitHub Desktop.
This file contains 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
var Alt = require('alt') | |
var alt = new Alt() | |
function S() { } | |
S.getUserById = function (id) { | |
var { users } = this.getState() | |
if (users[id]) { | |
return users[id] | |
} else { | |
UserActions.getUserId(id) | |
} | |
} | |
alt.createStore(S, 'UserStore') | |
S.getUserById() // might return might not? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment