Skip to content

Commit dd0a7af

Browse files
committed
fixup: cached vs stale
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
1 parent c7cbfe8 commit dd0a7af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react/src/evaluation/use-feature-flag.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ class HookFlagQuery<T extends FlagValue = FlagValue> implements FlagQuery {
429429
get isAuthoritative() {
430430
return (
431431
!this.isError &&
432-
this._details.reason != StandardResolutionReasons.CACHED &&
432+
this._details.reason != StandardResolutionReasons.STALE &&
433433
this._details.reason != StandardResolutionReasons.DISABLED
434434
);
435435
}

packages/react/src/query/query.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export interface FlagQuery<T extends FlagValue = FlagValue> {
4747

4848
/**
4949
* Indicates this flag is up-to-date and in sync with the source of truth.
50-
* Specifically, indicates the evaluation did not default due to error, and the reason is neither {@link StandardResolutionReasons.CACHED} or {@link StandardResolutionReasons.DISABLED}.
50+
* Specifically, indicates the evaluation did not default due to error, and the reason is neither {@link StandardResolutionReasons.STALE} or {@link StandardResolutionReasons.DISABLED}.
5151
*/
5252
readonly isAuthoritative: boolean;
5353

0 commit comments

Comments
 (0)