Sawtaytoes
2/24/2019 - 6:31 PM

Broadcasting Redux Messages

const DIFFICULTY_LEVELS_CHANGED = 'PLAYERS::DIFFICULTY_LEVELS_CHANGED'

const updateDifficultyLevels = ({
  exists,
  same,
}) => ({
  exists,
  same,
  type: DIFFICULTY_LEVELS_CHANGED,
  unlockChoice: window.UnlockPlayerToggle
})

// ...

updateDifficultyLevels({
  exists: True,
  same: PlayersOnline,
})