From 24fc9b159d19f58d44336160fa35d135c57723cd Mon Sep 17 00:00:00 2001 From: Simon Holthausen Date: Thu, 23 Oct 2025 18:01:11 +0200 Subject: [PATCH] comment --- packages/svelte/src/internal/client/constants.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/svelte/src/internal/client/constants.js b/packages/svelte/src/internal/client/constants.js index 67b73f54a7..1f35add2a8 100644 --- a/packages/svelte/src/internal/client/constants.js +++ b/packages/svelte/src/internal/client/constants.js @@ -24,6 +24,11 @@ export const USER_EFFECT = 1 << 20; // Flags exclusive to deriveds export const UNOWNED = 1 << 8; export const DISCONNECTED = 1 << 9; +/** + * Tells that we marked this derived and its reactions as visited during the "mark as (maybe) dirty"-phase. + * Will be lifted during execution of the derived and during checking its dirty state (both are necessary + * because a derived might be checked but not executed). + */ export const WAS_MARKED = 1 << 15; // Flags used for async