(name: string)
| 14 | * when the map (or the name) changes, yielding a stable reference per render. |
| 15 | */ |
| 16 | export function useProjectByName(name: string): Project { |
| 17 | const projectsByName = useAppStore((s) => s.projectsByName); |
| 18 | return useMemo( |
| 19 | () => useAppStore.getState().getProjectByName(name), |
| 20 | [projectsByName, name] |
| 21 | ); |
| 22 | } |
no test coverage detected