j-toscani / doppelkopf

German card game in the Browser
0 stars 0 forks source link

Use a Context for GameState Management. #17

Closed j-toscani closed 9 months ago

j-toscani commented 9 months ago

Is your feature request related to a problem? Please describe. The game state is handled in many different components.

Putting handlers and state into many different components and handleing them in react and via Browser Apis is not ideal.

Describe the solution you'd like Use one or multiple React.Contexts to have the GameState in one place with all it´s methods.

Describe alternatives you've considered

The latter is Overkill. The first is not enough

Additional context Add any other context or screenshots about the feature request here.