Skip to content

Custom preview components only support object payloads, not arrays #1196

Description

@gabrielMatosBoubee

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]

{
  "0":  arrayItem
}
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions