Skip to content

Commit

Permalink
fix(@cuser/react): missing restProps in Message when loading
Browse files Browse the repository at this point in the history
  • Loading branch information
rubeniskov committed Dec 23, 2020
1 parent 59e2f02 commit f037724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/components/Messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const Messages = ({
const messages = edges.map(({ node }) => node);

const loadMore = useCallback(() => fetchMore(), [fetchMore, edges.length]);
const loadingMessages = useMemo(() => new Array(limit).fill(null).map((_, id) => (<Message key={id} loading={true}/>)), [limit]);
const loadingMessages = useMemo(() => new Array(limit).fill(null).map((_, id) => (<Message key={id} loading={true} {...restProps}/>)), [limit]);

const handleEdit = useCallback((_, messageId) => setEditMessageId(messageId), []);
const handleAbortEdit = useCallback((_) => setEditMessageId(null), []);
Expand Down

0 comments on commit f037724

Please sign in to comment.