Skip to content

Commit 6997b47

Browse files
janechuCopilot
andcommitted
chore(fast-html): set a={b:{c:''}} in state.json, remove x, keep a={} and x=undefined on class
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 270dcdf commit 6997b47

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

packages/fast-html/test/fixtures/observer-map/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
Monthly: <!--fe-b$$start$$4$$metrics.engagement.monthly-4$$fe-b-->2000<!--fe-b$$end$$4$$metrics.engagement.monthly-4$$fe-b-->
3030
</div>
3131
</div>
32-
<!--fe-b$$start$$5$$when-5$$fe-b--><!--fe-b$$end$$5$$when-5$$fe-b-->
32+
<!--fe-b$$start$$5$$when-5$$fe-b-->
33+
<span class="nested-define"><!--fe-b$$start$$0$$5-a.b.c-0$$fe-b--><!--fe-b$$end$$0$$5-a.b.c-0$$fe-b--></span>
34+
<!--fe-b$$end$$5$$when-5$$fe-b-->
3335
<button data-fe-c-6-1>Define B</button>
3436
<button data-fe-c-7-1>Update C</button>
3537
<br>

packages/fast-html/test/fixtures/observer-map/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ class ObserverMapTestElement extends FASTElement {
148148
activeusers: 1,
149149
metrics: {
150150
engagement: {
151-
daily: 45,
152-
weekly: 120,
153-
monthly: 500,
151+
daily: 100,
152+
weekly: 500,
153+
monthly: 2000,
154154
},
155155
performance: {
156156
loadtime: 1.2,

packages/fast-html/test/fixtures/observer-map/state.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
]
1919
}
2020
],
21-
"a": null,
22-
"x": null,
21+
"a": { "b": { "c": "" } },
2322
"stats": {
2423
"totalusers": 2,
2524
"activeusers": 1,

0 commit comments

Comments
 (0)