Skip to content

Баг или фича options.state #105

@chestozo

Description

@chestozo

Вот для такой ручки:

de.object({
    one: de.object(
        { items: { item: [ 'one', 'two' ] } },
        { state: { 'items': '.items.item' } }
    ),

    two: de.object(
        { items: { item: [ 'three', 'four' ] } },
        { state: { 'items': '.items.item' } }
    )
}, {
    result: 'state.items'
})

Результатом будет:

[
    "one",
    "two",
    "three",
    "four"
]

Это баг или фича?

Мне кажется, это баг.
Один из state.items-ов должен был в итоге затереть другой state.items.

/cc @pasaran @edoroshenko

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions