mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-25 08:06:51 +00:00
Memoize list entries and wrap model data
This commit is contained in:
@@ -17,7 +17,7 @@ export const transformOutput: Hook<[any, OutputProps], any> = {
|
||||
list({ children }, path, value, props) {
|
||||
if (!Array.isArray(value)) return value
|
||||
return value.map((obj, index) =>
|
||||
children.hook(this, path.push(index), obj, props)
|
||||
children.hook(this, path.push(index), obj.node, props)
|
||||
)
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user