[FIX] documentation, incorrect example of toRaw

This commit is contained in:
poma-odoo
2022-11-17 15:03:16 +01:00
committed by Sam Degueldre
parent f6e8aff725
commit acfcc5677a
+1 -1
View File
@@ -262,7 +262,7 @@ original object:
const obj = {};
const reactiveObj = reactive(obj);
console.log(obj === reactiveObj); // false
console.log(toRaw(obj) === reactiveObj); // true
console.log(obj === toRaw(reactiveObj)); // true
```
It can also be useful during debugging, as unfolding proxies recursively in debuggers can be confusing.