Skip to content

Instantly share code, notes, and snippets.

@goatslacker
Created September 16, 2015 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goatslacker/bb774f398d4b34f7b520 to your computer and use it in GitHub Desktop.
Save goatslacker/bb774f398d4b34f7b520 to your computer and use it in GitHub Desktop.
import Alt from 'alt'
const alt = new Alt()
const actions = alt.generateActions('test')
const store1 = alt.createStore({
displayName: 'store1',
bindListeners: {
test: actions.test
},
test() {
console.log('one')
}
})
const store2 = alt.createStore({
displayName: 'store2',
bindListeners: {
test: actions.test
},
test() {
console.log('two')
}
})
actions.test()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment