Skip to content

Commit

Permalink
restore flagging for computed chains
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Jan 14, 2025
1 parent 3817863 commit c224437
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<KeyType>([
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit c224437

Please sign in to comment.