feat(sync): add typed acknowledgement effect
req: sync/006
This commit is contained in:
@@ -459,6 +459,11 @@
|
||||
if (op.kind === "put") {
|
||||
if (isAtom(op.target)) {
|
||||
atomStore(scope).set(String(op.target.resource.id), op.payload.value);
|
||||
forEachElement(scope, (element) => {
|
||||
if (element.getAttribute("data-aid") === String(op.target.resource.id)) {
|
||||
putPayload(element, op.payload);
|
||||
}
|
||||
});
|
||||
return true;
|
||||
}
|
||||
const target = targetFor(scope, op.target);
|
||||
|
||||
Reference in New Issue
Block a user