Sets the active id if updates are not paused as a result of hash changes
(id: string)
| 39 | |
| 40 | /** Sets the active id if updates are not paused as a result of hash changes */ |
| 41 | function updateActive(id: string) { |
| 42 | if (!updatesPaused.current) { |
| 43 | setActive(id); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | // Set active initially based on the URL hash when page is loaded |
| 48 | useIsomorphicLayoutEffect(() => { |
no outgoing calls
no test coverage detected
searching dependent graphs…