mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[IMP] store: properly handle already observed state
This commit is contained in:
@@ -178,6 +178,10 @@ export function makeObserver(): Observer {
|
||||
if (typeof value !== "object") {
|
||||
return;
|
||||
}
|
||||
if ("__rev__" in value) {
|
||||
// already observed
|
||||
return;
|
||||
}
|
||||
if (Array.isArray(value)) {
|
||||
observeArr(value);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user