@@ -74,9 +74,7 @@ This information may be passed to the component as a `comment` object matching t
74
74
}}
75
75
>
76
76
{ (args ) => {
77
- useEffect (() => {
78
- return initCommentReplyForms ();
79
- });
77
+ useEffect (() => initCommentReplyForms ());
80
78
return template ({
81
79
comment: makeComment (),
82
80
allow_replies: args .allowReplies ,
@@ -106,9 +104,7 @@ It is helpful for context within a discussion to know when a commentor is the or
106
104
}}
107
105
>
108
106
{ (args ) => {
109
- useEffect (() => {
110
- return initCommentReplyForms ();
111
- });
107
+ useEffect (() => initCommentReplyForms ());
112
108
return template ({
113
109
comment: makeComment (),
114
110
allow_replies: args .allowReplies ,
@@ -135,9 +131,7 @@ It is helpful for context within a discussion to know when a commentor is the or
135
131
}}
136
132
>
137
133
{ (args ) => {
138
- useEffect (() => {
139
- return initCommentReplyForms ();
140
- });
134
+ useEffect (() => initCommentReplyForms ());
141
135
return template ({
142
136
comment: makeComment (),
143
137
allow_replies: args .allowReplies ,
@@ -169,9 +163,7 @@ If `comment.approved` is not `true`, an [Alert](/docs/components-alert--basic) w
169
163
}}
170
164
>
171
165
{ (args ) => {
172
- useEffect (() => {
173
- return initCommentReplyForms ();
174
- });
166
+ useEffect (() => initCommentReplyForms ());
175
167
return template ({
176
168
comment: makeComment ({
177
169
approved: false ,
@@ -206,9 +198,7 @@ Additionally, a `source` object may be passed to the template consisting of a `u
206
198
}}
207
199
>
208
200
{ (args ) => {
209
- useEffect (() => {
210
- return initCommentReplyForms ();
211
- });
201
+ useEffect (() => initCommentReplyForms ());
212
202
return template ({
213
203
comment: makeComment (),
214
204
source: {
@@ -249,9 +239,7 @@ If the user is logged in, you should pass in `logged_in_user` and `log_out_url`
249
239
}}
250
240
>
251
241
{ (args ) => {
252
- useEffect (() => {
253
- return initCommentReplyForms ();
254
- });
242
+ useEffect (() => initCommentReplyForms ());
255
243
return template ({
256
244
comment: makeComment (),
257
245
allow_replies: args .allowReplies ,
@@ -287,9 +275,7 @@ While it is theoretically possible to infinitely nest `children`, it's recommend
287
275
}}
288
276
>
289
277
{ (args ) => {
290
- useEffect (() => {
291
- return initCommentReplyForms ();
292
- });
278
+ useEffect (() => initCommentReplyForms ());
293
279
return template ({
294
280
comment: makeComment ({ replies: 2 }),
295
281
allow_replies: args .allowReplies ,
0 commit comments