From c2244378d623b4c5dc412cdee83521103b04bdc5 Mon Sep 17 00:00:00 2001 From: Chris Thoburn Date: Tue, 14 Jan 2025 15:55:23 -0800 Subject: [PATCH] restore flagging for computed chains --- .../store/src/-private/record-arrays/identifier-array.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/store/src/-private/record-arrays/identifier-array.ts b/packages/store/src/-private/record-arrays/identifier-array.ts index 605e97e094..87571c72f4 100644 --- a/packages/store/src/-private/record-arrays/identifier-array.ts +++ b/packages/store/src/-private/record-arrays/identifier-array.ts @@ -23,6 +23,7 @@ import { recordIdentifierFor } from '../caches/instance-cache'; import type { RecordArrayManager } from '../managers/record-array-manager'; import type { Store } from '../store-service'; import { NativeProxy } from './native-proxy-type-fix'; +import { DEPRECATE_COMPUTED_CHAINS } from '@warp-drive/build-config/deprecations'; type KeyType = string | symbol | number; const ARRAY_GETTER_METHODS = new Set([ @@ -529,7 +530,11 @@ const desc = { enumerable: true, configurable: false, get: function () { - return this; + // here to support computed chains + // and {{#each}} + if (DEPRECATE_COMPUTED_CHAINS) { + return this; + } }, }; compat(desc);