8000 {index} in BlockDom · ged-odoo blockdom · Discussion #25 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

{index} in BlockDom #25

Answered by ged-odoo
HamedFathi asked this question in Q&A
Discussion options

You must be logged in to vote

Good question.

This comes from the way the createBlock function works: it makes a block that takes two arguments, data and children. children are for sub blocks, and data for any kind of dynamic thing in the block. More than one kind of data is possible: event handler, dynamic text, dynamic attribute, or dynamic refs. But the createBlock function needs to know which kind of data will be given, because it compiles small optimized function that targets one specific type of update.

So, in practice, it's not obvious how to do it differently.

Option 1: use a different index per type of update. This can work, but then we need to provide all dynamic data in different lists. This could look like …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by HamedFathi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
0