Skip to content

cursor.cursor('path') to immutable.List returns wrong cursor type #318

Closed
@jeroencranendonk-wf

Description

@jeroencranendonk-wf
var data = Immutable.fromJS({ a: [1, 2, 3] });
var cursor = Cursor.from(data);
var deepCursor = cursor.cursor('a');

deepCursor will be KeyedCursor, not IndexedCursor, due to the way subCursor() calls makeCursor() and how makeCursor() checks for optional arguments.
#297 fixes this issue.

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