Géry Debongnie
29111a5c10
[IMP] component: disable mutations in render phase
...
closes #48
2019-04-18 10:11:04 +02:00
Géry Debongnie
4b30d0b412
[FIX] observer: protect observed state against changes
2019-04-18 07:59:30 +02:00
Géry Debongnie
d07f396578
[REF] move jest.config.js into package.json
2019-04-18 07:40:56 +02:00
Géry Debongnie
2c218c4463
[REM] examples: remove benchmarks app
...
This will be moved in a different branch
closes #44
2019-04-17 16:22:33 +02:00
Géry Debongnie
af83a8249e
[REM] examples: remove todoapp
...
It now is available on the playground
2019-04-17 15:37:04 +02:00
Géry Debongnie
4807389012
[REL] bump to v0.7.0
v0.7.0
2019-04-17 11:00:29 +02:00
Géry Debongnie
7a479baf63
[DOC] doc: remove references to updateState
2019-04-17 10:59:03 +02:00
Géry Debongnie
ce87dd705e
[FIX] examples: update benchmarks/todoapp to new code
2019-04-17 10:59:03 +02:00
Géry Debongnie
94ed6ebe60
[IMP] component: remove updateState method
2019-04-17 10:59:03 +02:00
Géry Debongnie
619e455dd5
[IMP] component: observe the state and rerender if it changes
...
closes #35
2019-04-17 10:58:54 +02:00
Géry Debongnie
94e7d9aa39
[REF] observer: move batch code out of store, add notifycb
2019-04-17 09:16:48 +02:00
Géry Debongnie
c47c4ccc60
[REF] observer: turn the observer into a class
2019-04-16 22:34:26 +02:00
Géry Debongnie
b89327c831
[IMP] qweb: log a warning if a t-foreach is used without t-key
...
closes #40
2019-04-16 17:49:33 +02:00
Géry Debongnie
e19540fb04
[FIX] examples: update benchmarks code to new structure
2019-04-16 17:25:43 +02:00
Géry Debongnie
c67ab3d712
[IMP] owl: add github project url to exported object
2019-04-16 17:23:31 +02:00
Géry Debongnie
8163e2b0e4
[REM] component: remove PureComponent
2019-04-16 17:20:32 +02:00
Géry Debongnie
e5e6c50fff
[FIX] examples: adapt todoapp to new owl structure
2019-04-16 17:20:32 +02:00
Géry Debongnie
a22dcdaddf
[REF] owl: reorganize exports, remove registry, remove web example
...
closes #38
2019-04-16 17:20:23 +02:00
Géry Debongnie
eac49562fa
[REF] owl: export owl elements in one object
2019-04-16 16:26:06 +02:00
Géry Debongnie
460ae4bb34
[REF] qweb: add missing semicolon to compiled template
2019-04-16 16:16:08 +02:00
Géry Debongnie
c52e86feaf
[FIX] qweb: t-set should reuse variable if possible
...
closes #41
2019-04-16 16:04:44 +02:00
Géry Debongnie
cef12acfe0
[REF] observer: create sub array prototype only once
...
and reuse it whenever necessary. This should speed up the observer.
2019-04-16 15:17:36 +02:00
Géry Debongnie
515b91fe8a
[FIX] examples: add missing t-key attribute in todoapp
2019-04-16 14:59:55 +02:00
Géry Debongnie
0ca4cc1596
[IMP] qweb: make t-key directive dynamic
...
instead of having t-key and t-att-key.
closes #36
2019-04-16 14:38:55 +02:00
Géry Debongnie
7092f5e142
[REF] observer: move observer out of store
2019-04-16 14:24:19 +02:00
Géry Debongnie
6640644d34
[FIX] qweb/component: make widgets work with t-else=""
...
closes #37
2019-04-16 14:17:02 +02:00
Géry Debongnie
7974ce4963
[IMP] qweb: crash if t-on directive is used with no event
...
closes #33
2019-04-16 14:07:51 +02:00
Géry Debongnie
9dd8a36b28
[REF] examples: improve todoapp
2019-04-16 10:09:24 +02:00
Géry Debongnie
ed326d34fd
[FIX] qweb: add t-debug to list of valid directives
...
With a previous commit, qweb crashes when an unknown directive is
encountered. However, t-debug was not on the list of valid directives.
2019-04-16 09:57:58 +02:00
Géry Debongnie
480de10ff3
[FIX] store: properly compare values on store updates
...
Before this commit, we tried to use a hash function for non observable
values, but this was not correct, since some changes could be done that
would compensate each other.
With this commit, we properly compare each non observable value.
2019-04-16 09:47:03 +02:00
Alexandre Kühn
73fb8f8998
[FIX] store: connected component deeply reactive with undefined, null and string props
...
Revision on https://github.com/odoo/owl/commit/9f77344c3a19592d4a37df43b65f9e647fe41f24
Deeply reactive version of fix above.
2019-04-15 16:54:02 +02:00
Géry Debongnie
559c51a717
[FIX] store: change default hash function to better see changes
2019-04-15 16:50:07 +02:00
Alexandre Kühn
9f77344c3a
[FIX] store: connected component with undefined, null and string props
2019-04-15 15:36:18 +02:00
Géry Debongnie
85eb30626d
[FIX] qweb: t-set expressions are evaluated only once
...
closes #23
2019-04-15 14:38:08 +02:00
Géry Debongnie
3d18359dd8
[IMP] store: add 'deep' param to connect options
2019-04-15 11:51:18 +02:00
Alexandre Kühn
e005090296
[IMP] store: return data from committing a mutation
...
closes #29
2019-04-15 10:53:59 +02:00
Alexandre Kühn
7e7226213a
[IMP] store: commit a mutation in a mutation
2019-04-15 10:51:54 +02:00
Géry Debongnie
9ee85e220b
[FIX] store: unobserve detached objects
...
closes #27
2019-04-15 10:43:50 +02:00
Géry Debongnie
7b87470760
[IMP] store: connect function takes hash function in param
...
With this commit, we can now decides precisely if a component should be
rerendered, by using a hash function.
By default, the hash function will deep observe each store element
coming from the result of the mapStateToProps.
closes #24
2019-04-15 10:43:35 +02:00
Géry Debongnie
f5bbf25d4f
[IMP] store: add deep tracking for changes
...
This is only at the level of the store currently. To be useful, we need
to work on the 'connect' function.
2019-04-14 21:24:54 +02:00
Géry Debongnie
4ea0875fd9
[REF] store: namespace rev under __owl__ name
2019-04-14 11:27:02 +02:00
Géry Debongnie
3733734ae5
[REF] component: rename t-keep-alive to t-keepalive
...
This is useful to preserve the following nice property: when we have an
attribute t-something-someotherthing, we can get the directive name by
removing 't-' at the front, and splitting on '-'.
2019-04-14 10:44:29 +02:00
Géry Debongnie
d7bed96667
[IMP] qweb: crashes if unknown directive
...
closes #22
2019-04-14 10:43:27 +02:00
Géry Debongnie
a0f0a24d1d
[REF] component: use __owl__ as metadata key
2019-04-13 14:14:34 +02:00
Géry Debongnie
caed076f2a
[FIX] store: properly handle null values
2019-04-12 21:07:12 +02:00
Géry Debongnie
2ea01455cb
[FIX] qweb: fix issue with expression formatting
...
closes #21
2019-04-12 15:27:44 +02:00
Géry Debongnie
f300e921d6
[REF] qweb: small cleanup
2019-04-12 14:22:42 +02:00
Géry Debongnie
bba9e5fb20
[FIX] examples: update store example
2019-04-12 13:10:23 +02:00
Géry Debongnie
4f1d976206
[FIX] store: properly observe all array methods
2019-04-12 13:03:25 +02:00
Géry Debongnie
8ca806eb28
[IMP] store: make sure set function works with arrays
2019-04-12 12:45:44 +02:00