We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eef2cbd + 0cc9dbd commit f971f44Copy full SHA for f971f44
packages/@lwc/perf-benchmarks-components/src/benchmark/expression/expression.js
@@ -13,4 +13,27 @@ export default class Sample extends LightningElement {
13
14
expr2 = { expr21: { expr22: 'expr22' } };
15
expr3 = [{ expr33: 'expr33' }];
16
+
17
+ // Additional data for complex expression testing
18
+ get complexData() {
19
+ return {
20
+ string: 'test',
21
+ number: 42,
22
+ boolean: true,
23
+ array: [1, 2, 3, 4, 5],
24
+ nested: {
25
+ deep: {
26
+ value: 'nested value',
27
+ },
28
29
+ };
30
+ }
31
32
+ get computedValue() {
33
+ return this.expr1() + '_computed';
34
35
36
+ get conditionalValue() {
37
+ return this.expr2?.expr21?.expr22 ? 'hasValue' : 'noValue';
38
39
}
0 commit comments