Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement routing #16

Merged
merged 2 commits into from Feb 25, 2022
Merged

Implement routing #16

merged 2 commits into from Feb 25, 2022

Conversation

lijim
Copy link
Owner

@lijim lijim commented Feb 25, 2022

React-Router provides the solution for how this app will serve different views (e.g. a Lobby view / games / etc.)

Many previous projects prior to react-router-dom v6 were integrating with redux via connected-react-router. However, connected-react-router seems to have not been maintained to support react-router v6: supasate/connected-react-router#543

After some agonizing, I discovered that the latest version of react-router-dom (v6) is supported by redux-first-history

Demo w/ switching between two components:

Screen.Recording.2022-02-25.at.1.34.43.AM.mov

After some agonizing, I discovered that the latest version of react-router-dom (v6) is supported by redux-first-history

Connected-react-router seems to have not been maintained to support react-router v6: supasate/connected-react-router#543
@lijim lijim linked an issue Feb 25, 2022 that may be closed by this pull request
@lijim lijim merged commit 0b23afb into main Feb 25, 2022
@lijim lijim added this to the Core Game Engine - 2 players milestone Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add routing / state management to client
1 participant