fix: synchronize mounted component props
This commit is contained in:
1 parent
56cde5aaf8
commit
53b9947ef9
11 files changed
+159
-10
No files matched your search
@@ -1151,6 +1151,16 @@ page Home {
|
||||
|
||||
expect(output).toContain("__wrnexusPropAttr([");
|
||||
});
|
||||
test("page state passed to a component retains a parent-owned prop binding", () => {
|
||||
const output = generate(
|
||||
parse(`page Home {
|
||||
state count = 1
|
||||
view { <Child value={count} /> }
|
||||
}`),
|
||||
);
|
||||
expect(output).toContain("data-wrn-prop-bind-");
|
||||
expect(output).toContain("{count}");
|
||||
});
|
||||
test("nested component props retain parent-owned reactive bindings", () => {
|
||||
const output = generate(
|
||||
parse(`component Parent {
|
||||
|
||||
Reference in new issue
Block a user