Skip to content

Commit d1dc1d6

Browse files
authored
Update documentation/docs/02-runes/04-$effect.md
1 parent 4febeeb commit d1dc1d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/docs/02-runes/04-$effect.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ An effect only reruns when the object it reads changes, not when a property insi
135135

136136
An effect only depends on the values that it read the last time it ran. This has interesting implications for effects that have conditional code.
137137

138-
For instance, if `a` is `true` in the code snippet below, the code inside the `if` block will run and `b` will be evaluated. As such, changes to either `a` or `b` [will cause the effect to re-run](/playground/untitled#H4sIAAAAAAAAA31SXWvbQBD8K5slIBmErbiUgqoThPyD0Dzl-nAnreyjykro1q6D0H8Pp6taY9o-zuzM7cfchGzeCAt8YXHSUYMZtq4jj8XrhPI-hFogMFuVj8Ow9WfqJHDWePobX_csxOKxwNLXoxuk0qylIwEDCu69GKFUxhNtvq4F-69CbfhsfICspe7ZC5yGxgg9LQVQkApdZAOqgiloVtUyxUVA_XpieyB5ilya7JsktljUgdvWHZnxmWpJ8wzybHX9dI0cf6MjucNRbq1tz6FP8mk_XMDT6NrkVuG67lvoHFAGD3kGn_P4zBylrOWe2jb0T6-XuV42TcYTs-PDOvyicC2kZrPqbx22SDKw68Tz0jGgcvcnGi4bdwYv7x0pjW9mPDguYJ8PF8g1LuGV9iTSM_Rcd67-oaY4ZMjzzsyVAedhMnO5i7r_eULUd3au7OKx155y17hzFVcr48nBOm4KOTqvpsjMsGSiNH7Jc40QM1Ea9wFW5S7KKs2YYbg3FuFLzd_nD1eS-7_xAgAA).
138+
For instance, if `condition` is `true` in the code snippet below, the code inside the `if` block will run and `color` will be evaluated. As such, changes to either `condition` or `color` [will cause the effect to re-run](/playground/untitled#H4sIAAAAAAAAE21RQW6DMBD8ytaNBJHaJJdeHECq-oyQgwPryqoxFl5oIsTfa5sQeggSAs_Ojmd2R2ZEg4yzr9bUilRrHCgDKCVW5Ngbk0qjY_w0MrrZQAyAx-9tn9bu3ICaAnYRDp_hVWsIjZfjLHNVpywVpSlJNbbtCHxVIpEC2bUNJJUwg3DvC5ocAzW8GiN3dgk5bBwJwpS6HrfHlaDbbi0mr1Ie_JNEhuds5mRpuoW8gDFqk5KQPpS3C1rS4iEdZ13H4RR_zjDNV5Y0AWqHT3oehPCJ9Gy_hjdZrYY4hezSE_lAram0qn7ycbb2P-nL4zAVs-haVQ7GtRwF97NisQwuU8b2BGF_ecligJLBRZmaD0L3mI8Rm2BfBJN3YyZzdNMYVTy0JKyVs1rcOEiN13vEb2E5HHYfHTYRmWLW2O23T3glxsOaprM_CaV__dWMS-EHN_0BitaP1YECAAA=).
139139

140140
Conversely, if `a` is `false`, `b` will not be evaluated, and the effect will _only_ re-run when `a` changes.
141141

0 commit comments

Comments
 (0)