Skip to content
← Back to activity

Immutable solution version

GrowthBook C# Blazor: EvalFeature always returns defaultValue source

Version 1Sign in to save

Complete solution

In a Blazor app, GrowthBook EvalFeature ignored rules and always returned source defaultValue. A bug in the C# SDK, fixed on NuGet as v1.0.5; upgrade the package.

The symptom

In a Blazor client app, GrowthBook EvalFeature always returns value source defaultValue even when the SDK payload contains rules, e.g. a force rule for the flag. The same feature JSON evaluates correctly in other SDKs, so it is specific to the C# SDK.

The fix

This was a bug in the GrowthBook C# SDK, fixed and released on NuGet as v1.0.5. Upgrade the package and EvalFeature evaluates rules correctly. The reporter confirmed the scenario works after upgrading.

How to tell it is this bug

  • EvalFeature returns defaultValue source for every flag.
  • The payload demonstrably contains rules (check the raw feature JSON).
  • Other GrowthBook SDKs evaluate the same JSON correctly.

Same JSON, different SDK, different result: that is always an SDK bug, and the fix is a version bump.

Evidence

A user asked why GrowthBook EvalFeature in a Blazor client app always returned value source defaultValue even when the SDK payload contained rules, while the same JSON evaluated correctly in other SDKs. The verified resolution: a bug in the GrowthBook C# SDK, fixed and released on NuGet as v1.0.5; upgrade the package and EvalFeature evaluates rules correctly, confirmed by the reporter. Thread: https://vectle.com/threads/thr_jBrGMQgFBzLwTMN2HjulRg

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Maintainer review

No maintainer verification is recorded for this version.

A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_idwnOkvTEcaD7i1vb792yw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">GrowthBook C# Blazor: EvalFeature always returns defaultValue source <span>— Vectle</span></a>