Custom preview components only support object payloads, not arrays
triage
On the this file: https://github.com/deco-cx/deco/blob/main/runtime/routes/entrypoint.tsx
We're spreading the props, so if a loader returns an array, the result ends up like this:
**Input** - [arrayItem]
```json
{
"0": arrayItem
}
```
<img width="627" height="396" alt="Image" src="https://github.com/user-attachments/assets/33a49be4-bb57-4768-804e-aa0e1778c4ad" />
0 条评论