(matches?: UIMatch[])
| 18 | } |
| 19 | |
| 20 | export function useProject(matches?: UIMatch[]) { |
| 21 | const project = useOptionalProject(matches); |
| 22 | invariant(project, "Project must be defined"); |
| 23 | return project; |
| 24 | } |
| 25 | |
| 26 | export const useProjectChanged = (action: (org: MatchedProject | undefined) => void) => { |
| 27 | useChanged(useOptionalProject, action); |
no test coverage detected
searching dependent graphs…