Skip to content

Accessing to the state from player.js #334

Answered by bra1n
MRegnard asked this question in Q&A
Discussion options

You must be logged in to vote

Hey MRegnard,
in order to access the rootState from within a module getter, you need to pass the correct parameters: https://stackoverflow.com/a/42171854/1552315
The third one would be the rootState, or in your case: nightOrder({ players, fabled }, getters, { edition })

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MRegnard
Comment options

Answer selected by MRegnard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants