MCPcopy Create free account
hub / github.com/benjitaylor/agentation / updateActive

Function updateActive

package/example/src/hooks/useActiveScrollElement.ts:41–45  ·  view source on GitHub ↗

Sets the active id if updates are not paused as a result of hash changes

(id: string)

Source from the content-addressed store, hash-verified

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(() => {

Callers 2

observerCbFunction · 0.85
handleScrollFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…