Closed sporto closed 8 years ago
Component Players.Edit wants to send a message to PerksPlayers, these are siblings modules
Main -- PerksPlayers -- Players.Edit
The way this is done now is:
Players.Edit.view
PlayersActions.TogglePlayerPerk
Players.update
Actions.TogglePlayerPerk
Main.update
PerksPlayers.Actions.TogglePlayerPerk
Perks.update
So the TogglePlayerPerk is in three places: Players, Main and PerksPlayers.
TogglePlayerPerk
Component Players.Edit wants to send a message to PerksPlayers, these are siblings modules
Main -- PerksPlayers -- Players.Edit
The way this is done now is:
Players.Edit.view
triggersPlayersActions.TogglePlayerPerk
action.Players.update
picks upPlayersActions.TogglePlayerPerk
and returns a root fx, this root fx triggers aActions.TogglePlayerPerk
actionMain.update
picks upActions.TogglePlayerPerk
and creates a new fx that triggersPerksPlayers.Actions.TogglePlayerPerk
Perks.update
picks upPerksPlayers.Actions.TogglePlayerPerk
and changes the collectionSo the
TogglePlayerPerk
is in three places: Players, Main and PerksPlayers.