[IMP] store: memoize getters

Closes #95
This commit is contained in:
Aaron Bohy
2019-06-14 22:14:17 +02:00
committed by Géry Debongnie
parent 5ff501f8b8
commit a56939f13a
3 changed files with 159 additions and 1 deletions
+6
View File
@@ -142,6 +142,12 @@ const getters = {
const post = store.getters.getPost(id);
```
Getters take *at most* one argument.
Note that getters are cached if they don't take any argument, or their argument
is a string or a number.
### Connecting a Component
By default, an Owl `Component` is not connected to any store. The `connect`