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

Use url state to drive ProgramMenu comp state #111

Open
ciaranschutte opened this issue Nov 16, 2023 · 0 comments
Open

Use url state to drive ProgramMenu comp state #111

ciaranschutte opened this issue Nov 16, 2023 · 0 comments
Assignees

Comments

@ciaranschutte
Copy link
Contributor

          Having read how this is used now, maybe we should just use `activeProgramShortName` instead of the index, this way we don't need to mechanisms to check if a program is active (index vs short name from url params). In fact, when the component loads we can set the default state from the query param. We can continue to use undefined as the default mode (All Programs).

We could also have the selection of a program from the side menu set the param in the URL by updating setActiveProgram to do this and update state.

Originally posted by @joneubank in #108 (comment)

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

No branches or pull requests

1 participant