From 0dd6c58cfebbc7e0ede3b1e959bd9415fa5a7f75 Mon Sep 17 00:00:00 2001 From: Dante Date: Tue, 16 Sep 2025 23:31:44 +0100 Subject: [PATCH] createEffect doesn't track changes in all variables Removed "variables" from the types of things that createEffect tracks changes of. It was confusing and incorrect except for variables that hold reactive values. https://www.reddit.com/r/solidjs/comments/1nex5ei/why_does_solidjs_docs_list_variables_as_a/ https://playground.solidjs.com/anonymous/086d4c92-c72f-4d9f-bd44-4821080bab61 --- src/routes/concepts/effects.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/concepts/effects.mdx b/src/routes/concepts/effects.mdx index f1e2cd54a..f6c4631e4 100644 --- a/src/routes/concepts/effects.mdx +++ b/src/routes/concepts/effects.mdx @@ -28,7 +28,7 @@ When the value of `count` changes, the effect is triggered, causing it to run ag Effects can be set to observe any number of dependencies. Dependencies are what allow an effect to track changes and respond accordingly. -These can include signals, variables, props, context, or any other reactive values. +These can include signals, props, context, or any other reactive values. When any of these change, the effect is notified and will run again to update its state. Upon initialization, an effect will run _once_, regardless of whether it has any dependencies.