Skip to content

Options hash is same instance passed to each cell when using collections #498

@samstickland

Description

@samstickland

All,

Is this deliberate here?

cell = @cell_class.build(model, @options)

I would prefer this to be @options.clone, as we have some cells that can be passed options or use their own default values (which might be dependent on the model). As we mutate the cells options, the same options then get used in the next render from the collection.

FWIW, we only have this idea of default values for options, because there's no actual control over how a cell is built. Something to think about for v5 perhaps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions