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?
I'm not sure how to fix this, so doing issue instead of PR.
This code adds second argument to
.mapcalls, causing errorand more — breaking functionality, because second argument of
store.maphas other semantic, it is not a place to put meta data here.effector-devtools/src/babel-plugin/index.ts
Lines 187 to 200 in 95fc918
Maybe just remove it?