Skip to content

Commit 3cd3e23

Browse files
committed
add comment about hooks
1 parent 0e81519 commit 3cd3e23

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkgs/sdk/client/src/LdClient.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,9 @@ EvaluationDetail<T> errorResult(EvaluationErrorKind kind) =>
769769
// to emitting the events.
770770
//
771771
// We're passing LdValue.Null to match a server-side SDK's behavior when evaluating prerequisites.
772+
//
773+
// NOTE: if "hooks" functionality is implemented into this SDK, take care that evaluating prerequisites
774+
// does not trigger hooks. This may require refactoring the code below to not use JsonVariationDetail.
772775
if (flag.Prerequisites != null)
773776
{
774777
foreach (var prerequisiteKey in flag.Prerequisites)

0 commit comments

Comments
 (0)