clutch
clutch copied to clipboard
core: dependencies between routes
Description
Provide a mechanism that allows a given package to require its users to enable route X if route Y is enabled.
What I'm going to describe here is a general request but I'm going to use an experimentation package to illustrate the use case.
The main route in the experimentation package is called listExperiments and it's responsible for presenting the list of existing experiments. When a user taps any of the elements in the list we want to move them to the viewExperimentRun route. This implies that viewExperimentRun route should be always enabled if listExperiments is enabled. As far as I know, Clutch doesn't currently provide a mechanism for this kind of enforcement.
| Route | Path | Screenshot |
|---|---|---|
| listExperiments | /list | ![]() |
| viewExperimentRun | /run/:runID | ![]() |
Complexity [S/M/L]: ?

