Géry Debongnie
cfdce29ce7
[FIX] component: avoid key collisions in sub components
...
This is a difficult part of owl: we need to be able to reconcile the
vdom generated (this is done with our virtual dom algorithm), but also
to be able to reconcile the proper components.
The issue here is that when we are in a list, with a t-key attribute on all
list nodes, and those list nodes contains sub component, then the
component system used the index of the list, and did not take into
account the key from the parent. The fix is to keep track of the
current key in the context, and uses that as a part of the templateId.
2019-09-03 12:13:57 +02:00
Géry Debongnie
b344d73e07
[FIX] component: prevent collision between template ids and keys
2019-09-02 15:27:37 +02:00
Géry Debongnie
4cd08d25c8
[FIX] component: solve tricky concurrency issue
...
In some specific situation, a component could crash, because it was
destroyed before being mounted, but reused anyway for another rendering.
2019-09-01 21:24:54 +02:00
Géry Debongnie
f9861040c8
[FIX] router: properly react on hashchange
...
Before this commit, hashchanges were not taken into account by the
router, if used in history mode.
Also, it's stupid, but i ran prettier on the codebase
2019-09-01 11:45:13 +02:00
Géry Debongnie
40d8090232
[FIX] router: update app if parameterized route changes
2019-08-31 15:03:17 +02:00
Géry Debongnie
55be6437f1
[FIX] router: better support for hash mode
2019-08-31 09:55:45 +02:00
Géry Debongnie
6ff4dd74bf
[DOC] readme: improve main example
2019-08-28 12:22:32 +02:00
Géry Debongnie
3628b49c37
[DOC] update readme (swap some sections around)
2019-08-28 12:05:53 +02:00
Géry Debongnie
f289cb17ec
[REL] bump to v0.19.0
v0.19.0
2019-08-28 11:55:36 +02:00
Géry Debongnie
e6a3ede4a6
[FIX] component: improve unmount/remount behaviour
2019-08-28 11:41:10 +02:00
Alexandre Kühn
10cfe0b740
[IMP] store: dispatch method returns data from action
2019-08-27 22:26:16 +02:00
Géry Debongnie
a3d563ebb4
[FIX] connected_component: some misc issues
...
- did not properly stop listening to the store after being destroyed
- did not properly synchronize store updates in some async cases
2019-08-27 17:11:54 +02:00
Géry Debongnie
3b1247d476
[REF] vdom: small cleanup
2019-08-27 16:01:01 +02:00
Géry Debongnie
beb6c2bc82
[DOC] improve readme and comparison
...
closes #244
2019-08-27 14:48:02 +02:00
Géry Debongnie
f0cd6f61cd
[FIX] playground: fix crash in todo app example
2019-08-27 14:09:20 +02:00
Géry Debongnie
c950b385a0
[ADD] playground: add window management system example
...
closes #231
2019-08-27 14:09:20 +02:00
Géry Debongnie
c172b31481
[DOC] router: add documentation
2019-08-26 15:45:55 +02:00
Géry Debongnie
9b3a97e732
[DOC] component: improve internal documentation
2019-08-26 12:19:11 +02:00
Géry Debongnie
670c98916c
[DOC] store: update documentation and add examples
2019-08-26 10:31:11 +02:00
Géry Debongnie
c59abef374
[IMP] connected component: add dispatch method
2019-08-26 10:31:11 +02:00
Géry Debongnie
bb4c2506c0
[REF] store: merge actions and mutations
...
closes #256
2019-08-26 10:31:11 +02:00
Géry Debongnie
9843d16585
[REF] component: improve render method
2019-08-26 10:31:11 +02:00
Géry Debongnie
34e463ad0a
[REF] connected component: separate storeprops from props
...
closes #259
2019-08-26 10:31:11 +02:00
Géry Debongnie
2294c1967f
[IMP] qweb: allow xml documents as template definition
...
Before this commit, the addTemplates method only accepts a string. But
whenever we perform a $.get call, we get a parsed xml document. So, to
make Owl more convenient to use in that situation, we simply accept xml
documents in addition to strings.
2019-08-23 15:17:28 +02:00
Géry Debongnie
4b53e48e91
[ADD] tools: add benchmarks for 0.18.0
2019-08-22 15:26:17 +02:00
Géry Debongnie
70a70161e7
[REL] bump to v0.18.0
v0.18.0
2019-08-22 14:56:39 +02:00
Géry Debongnie
e690991a6a
[FIX] component: better heuristic to determine if was mounted
2019-08-22 14:55:31 +02:00
Géry Debongnie
a621a14028
[MERGE] router: add owl router
...
First implementation of a declarative router component/directive/plugin
2019-08-22 14:49:11 +02:00
Géry Debongnie
9754cc7521
[REF] small cleanup
2019-08-22 14:26:34 +02:00
Géry Debongnie
aa268937a7
[IMP] router: navigate now returns more information
2019-08-22 14:26:34 +02:00
Géry Debongnie
3db6f0a643
[IMP] owl: add commonjs build script
2019-08-22 14:26:34 +02:00
Géry Debongnie
635a7fc72c
[FIX] router: do not prevent default click on <a> in some cases
2019-08-22 14:26:34 +02:00
Géry Debongnie
6cd5ec10f0
[FIX] router: properly redirect if necessary when started
2019-08-22 14:26:34 +02:00
Géry Debongnie
0a276fbf1d
[IMP] router: basic implementation of navigation guards
2019-08-22 14:26:34 +02:00
Géry Debongnie
d593131cc1
[REF] router: remove useless check
2019-08-22 14:26:34 +02:00
Géry Debongnie
3c3dcb44a9
[IMP] router: add test for Link
2019-08-22 14:26:34 +02:00
Géry Debongnie
6ecd1d6ea2
[IMP] router: add validation for destinations
2019-08-22 14:26:34 +02:00
Géry Debongnie
1a931a2a08
[IMP] router: implement redirect feature
2019-08-22 14:26:34 +02:00
Géry Debongnie
bf705fcd99
[REF] router: add TestRouter and improve tests
2019-08-22 14:26:34 +02:00
Géry Debongnie
bb46346767
[REF] router: change Destination shape
2019-08-22 14:26:34 +02:00
Géry Debongnie
cd0762b436
[REF] rework router into a class
2019-08-22 14:26:34 +02:00
Géry Debongnie
ca920a0091
[ADD] router: initial implementation
2019-08-22 14:26:34 +02:00
Géry Debongnie
e5b1ba24d8
[IMP] component: allow multiple mount/unmount
...
closes #258
2019-08-22 14:23:08 +02:00
Géry Debongnie
eaf912bed7
[FIX] observer: properly handle dates
2019-08-22 14:22:20 +02:00
Géry Debongnie
fd0fb5be00
[REF] observer: refactor observer using proxy
...
closes #253
2019-08-22 14:22:20 +02:00
Géry Debongnie
f9f730ab7b
[DOC] add some info about return value from actions
2019-08-22 13:05:54 +02:00
Géry Debongnie
b30b72fc36
[FIX] update benchmark application
2019-08-22 13:05:37 +02:00
Alexandre Kühn
ab08e84bff
[IMP] store: return data from dispatching an action
2019-08-22 13:04:32 +02:00
Géry Debongnie
cd9cac1246
[REF] qweb: add forceUpdate method
...
and make sure it only triggers an update once for multiple calls in same
call stack
2019-07-30 15:00:51 +02:00
Géry Debongnie
f6369f9750
[REF] qweb: put directives in static QWeb prop
...
so they can be altered by outside code. This is mostly useful for tests.
2019-07-30 14:37:39 +02:00