Skip to content

Commit

Permalink
[#141] refactor: block의 type만 바뀔 때로 render수 감소
Browse files Browse the repository at this point in the history
  • Loading branch information
YiSoJeong committed Dec 19, 2020
1 parent 841591a commit 1a6f66b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ function BlockContent(blockDTO: Block) {
listCnt.current = cntOfUpperNumberListBlock() + 1;
}
}
}, [blockDTO.value, blockDTO.type]);
}, [blockDTO.type]);

const dragOverHandler = (event: React.DragEvent<HTMLDivElement>) => {
event.dataTransfer.dropEffect = 'move';
Expand Down

0 comments on commit 1a6f66b

Please sign in to comment.