(value: T, condition = true)
| 21 | } |
| 22 | |
| 23 | function useInitialValue<T>(value: T, condition = true) { |
| 24 | let initialValue = useRef(value).current |
| 25 | return condition ? initialValue : value |
| 26 | } |
| 27 | |
| 28 | function matchPath(pathname: string, href: string) { |
| 29 | if (href === '/components') { |
no outgoing calls
no test coverage detected