We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b5be39 commit 743c91fCopy full SHA for 743c91f
1 file changed
ch5/front/components/PostForm.js
@@ -46,14 +46,14 @@ const PostForm = () => {
46
type: UPLOAD_IMAGES_REQUEST,
47
data: imageFormData,
48
});
49
- });
+ }, []);
50
51
const onRemoveImage = useCallback((index) => () => {
52
dispatch({
53
type: REMOVE_IMAGE,
54
data: index,
55
56
57
58
return (
59
<Form style={{ margin: '10px 0 20px' }} encType="multipart/form-data" onFinish={onSubmit}>
0 commit comments