mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
c52799de2c
This is a tricky bug. The problem is that a ConnectedComponent can trigger a rendering before it is aware that there is a state change in the store, and just before the store update event comes in. What we do in this commit is to update the storeProps whenever a rendering is scheduled. However, we need to keep the rendering information as a promise to give it in some case to the __checkUpdate method (see the note in the render method) closes #268
22 lines
1.3 KiB
Plaintext
22 lines
1.3 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`connecting a component to store connecting a component to a local store 1`] = `"<div></div>"`;
|
|
|
|
exports[`connecting a component to store connecting a component to a local store 2`] = `"<div><span>hello</span></div>"`;
|
|
|
|
exports[`connecting a component to store connecting a component works 1`] = `"<div></div>"`;
|
|
|
|
exports[`connecting a component to store connecting a component works 2`] = `"<div><span>hello</span></div>"`;
|
|
|
|
exports[`connecting a component to store deep and shallow connecting a component 1`] = `"<div><span>Kasteel</span></div>"`;
|
|
|
|
exports[`connecting a component to store deep and shallow connecting a component 2`] = `"<div><span>Kasteel</span></div>"`;
|
|
|
|
exports[`connecting a component to store deep and shallow connecting a component 3`] = `"<div><span>Bertinchamps</span></div>"`;
|
|
|
|
exports[`connecting a component to store deep and shallow connecting a component 4`] = `"<div><span>Kasteel</span></div>"`;
|
|
|
|
exports[`various scenarios scenarios with async store updates and some components events 1`] = `"<div><button>Do stuff</button><div><span>Attachment 100</span><span>Name: text.txt</span></div></div>"`;
|
|
|
|
exports[`various scenarios scenarios with async store updates and some components events 2`] = `"<div><button>Do stuff</button></div>"`;
|