Skip to content

Feature request: Extra params to iterators #7

Open
@craigrileyuk

Description

@craigrileyuk

Presently, the callbacks passed to iterators receive only one argument: vnode.

It'd be very helpful if these all received the standard Javascript arguments, namely: (item, index, array)

See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map#callbackfn

One usage example might be for addProps where you might want to conditionally apply a prop dependent on where it is in the array.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions