Skip to content

Use url state to drive ProgramMenu comp state #111

@ciaranschutte

Description

@ciaranschutte
          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)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions