parent
164801aa93
commit
6dcc7ed575
|
@ -3780,7 +3780,8 @@ const functionCompositionFunctionNames = new Set([
|
||||||
"composeK", // Ramda
|
"composeK", // Ramda
|
||||||
"flow", // Lodash
|
"flow", // Lodash
|
||||||
"flowRight", // Lodash
|
"flowRight", // Lodash
|
||||||
"connect" // Redux
|
"connect", // Redux
|
||||||
|
"createSelector" // Reselect
|
||||||
]);
|
]);
|
||||||
|
|
||||||
function isFunctionCompositionFunction(node) {
|
function isFunctionCompositionFunction(node) {
|
||||||
|
|
|
@ -390,6 +390,35 @@ const ArtistInput = connect(
|
||||||
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
exports[`reselect_createselector.js - flow-verify 1`] = `
|
||||||
|
import { createSelector } from 'reselect';
|
||||||
|
|
||||||
|
const resolve = createSelector(
|
||||||
|
getIds,
|
||||||
|
getObjects,
|
||||||
|
(ids, objects) => ids.map(id => objects[id])
|
||||||
|
);
|
||||||
|
|
||||||
|
const resolve = createSelector(
|
||||||
|
[getIds, getObjects],
|
||||||
|
(ids, objects) => ids.map(id => objects[id])
|
||||||
|
);
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
import { createSelector } from "reselect";
|
||||||
|
|
||||||
|
const resolve = createSelector(
|
||||||
|
getIds,
|
||||||
|
getObjects,
|
||||||
|
(ids, objects) => ids.map(id => objects[id])
|
||||||
|
);
|
||||||
|
|
||||||
|
const resolve = createSelector(
|
||||||
|
[getIds, getObjects],
|
||||||
|
(ids, objects) => ids.map(id => objects[id])
|
||||||
|
);
|
||||||
|
|
||||||
|
`;
|
||||||
|
|
||||||
exports[`rxjs_pipe.js - flow-verify 1`] = `
|
exports[`rxjs_pipe.js - flow-verify 1`] = `
|
||||||
import { range } from 'rxjs/observable/range';
|
import { range } from 'rxjs/observable/range';
|
||||||
import { map, filter, scan } from 'rxjs/operators';
|
import { map, filter, scan } from 'rxjs/operators';
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
import { createSelector } from 'reselect';
|
||||||
|
|
||||||
|
const resolve = createSelector(
|
||||||
|
getIds,
|
||||||
|
getObjects,
|
||||||
|
(ids, objects) => ids.map(id => objects[id])
|
||||||
|
);
|
||||||
|
|
||||||
|
const resolve = createSelector(
|
||||||
|
[getIds, getObjects],
|
||||||
|
(ids, objects) => ids.map(id => objects[id])
|
||||||
|
);
|
Loading…
Reference in New Issue