Skip to content

second argument of store.map is deprecated, use updateFilter instead #6

@yumauri

Description

@yumauri

I'm not sure how to fix this, so doing issue instead of PR.

This code adds second argument to .map calls, causing error

second argument of store.map is deprecated, use updateFilter instead

and more — breaking functionality, because second argument of store.map has other semantic, it is not a place to put meta data here.

if (
t.isIdentifier(path.node.property) &&
path.node.property.name === "map"
) {
setStoreNameAfter(
path,
state,
findCandidateNameForExpression(path),
t,
{ addLoc, addNames: true },
false,
path.node.property.name
);
}

Maybe just remove it?

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