From 3cd3e23b106c4cfd1395d2f4f33354e8926077e0 Mon Sep 17 00:00:00 2001 From: Casey Waldren Date: Tue, 29 Oct 2024 16:13:36 -0700 Subject: [PATCH] add comment about hooks --- pkgs/sdk/client/src/LdClient.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/sdk/client/src/LdClient.cs b/pkgs/sdk/client/src/LdClient.cs index 7b6b8139..195f24dd 100644 --- a/pkgs/sdk/client/src/LdClient.cs +++ b/pkgs/sdk/client/src/LdClient.cs @@ -769,6 +769,9 @@ EvaluationDetail errorResult(EvaluationErrorKind kind) => // to emitting the events. // // We're passing LdValue.Null to match a server-side SDK's behavior when evaluating prerequisites. + // + // NOTE: if "hooks" functionality is implemented into this SDK, take care that evaluating prerequisites + // does not trigger hooks. This may require refactoring the code below to not use JsonVariationDetail. if (flag.Prerequisites != null) { foreach (var prerequisiteKey in flag.Prerequisites)