MCPcopy Create free account
hub / github.com/thetarnav/solid-devtools / createEffectInRoot

Function createEffectInRoot

examples/sandbox/src/App.tsx:23–29  ·  view source on GitHub ↗
(dispose: VoidFunction)

Source from the content-addressed store, hash-verified

21 setRootCount = setCount
22
23 function createEffectInRoot(dispose: VoidFunction) {
24 s.createEffect(() => count() === 4 && dispose(), undefined, {})
25
26 s.createRoot(_ => {
27 s.createEffect(() => count())
28 })
29 }
30
31 s.createEffect(() => {
32 count()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…