File size: 486 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
// @flow
import { getReactions, getReactionsByIds } from '../models/reaction';
import createLoader from './create-loader';
export const __createReactionLoader = createLoader(
messageIds => getReactions(messageIds),
'group'
);
export const __createSingleReactionLoader = createLoader(reactionIds =>
getReactionsByIds(reactionIds)
);
export default () => {
throw new Error(
'⚠️ Do not import loaders directly, get them from the GraphQL context instead! ⚠️'
);
};
|