mirror of
https://github.com/morluto/rea.git
synced 2026-11-20 13:45:30 +00:00
fix(javascript): preserve dependencies for projected array sources (#12519)
This commit is contained in:
1 parent
1ec32721af
commit
16e4eec122
5 files changed
+224
-31
No files matched your search
@@ -41,6 +41,10 @@ cliTest(
|
||||
const skipped = ["skip", "first"];
|
||||
const [,elided] = skipped;
|
||||
skipped[1] = "later";
|
||||
const projectedSource = { items: ["projected"] };
|
||||
const projectedAlias = projectedSource;
|
||||
const [projected] = projectedAlias.items;
|
||||
projectedSource.items[0] = "later";
|
||||
const box = { items: [] };
|
||||
const iterator = box.items.values();
|
||||
const prototype = Reflect.getPrototypeOf(iterator);
|
||||
@@ -69,6 +73,7 @@ cliTest(
|
||||
["ordinary", ["0"]],
|
||||
["arrayAssigned", ["0"]],
|
||||
["elided", ["1"]],
|
||||
["projected", ["items", "0"]],
|
||||
["selected", ["0"], "candidate"],
|
||||
] as const) {
|
||||
const binding = graph.nodes.find(
|
||||
@@ -104,6 +109,7 @@ cliTest(
|
||||
"ordinary",
|
||||
"arrayAssigned",
|
||||
"elided",
|
||||
"projected",
|
||||
"selected",
|
||||
]) {
|
||||
const binding = graph.nodes.find(
|
||||
|
||||
Reference in new issue
Block a user