@@ -7036,7 +7036,7 @@ const tests = {
7036
7036
{
7037
7037
message :
7038
7038
"The 'foo' object makes the dependencies of useMemo Hook (at line 4) change on every render. " +
7039
- "Move it inside the useMemo callback. Alternatively, wrap the assignment of 'foo' in its own " +
7039
+ "Move it inside the useMemo callback. Alternatively, wrap the initialization of 'foo' in its own " +
7040
7040
'useMemo() Hook.' ,
7041
7041
suggestions : undefined ,
7042
7042
} ,
@@ -7053,7 +7053,7 @@ const tests = {
7053
7053
{
7054
7054
message :
7055
7055
"The 'foo' array makes the dependencies of useMemo Hook (at line 4) change on every render. " +
7056
- "Move it inside the useMemo callback. Alternatively, wrap the assignment of 'foo' in its own " +
7056
+ "Move it inside the useMemo callback. Alternatively, wrap the initialization of 'foo' in its own " +
7057
7057
'useMemo() Hook.' ,
7058
7058
suggestions : undefined ,
7059
7059
} ,
@@ -7104,7 +7104,7 @@ const tests = {
7104
7104
{
7105
7105
message :
7106
7106
"The 'foo' class makes the dependencies of useMemo Hook (at line 4) change on every render. " +
7107
- "Move it inside the useMemo callback. Alternatively, wrap the assignment of 'foo' in its own " +
7107
+ "Move it inside the useMemo callback. Alternatively, wrap the initialization of 'foo' in its own " +
7108
7108
'useMemo() Hook.' ,
7109
7109
suggestions : undefined ,
7110
7110
} ,
@@ -7121,7 +7121,7 @@ const tests = {
7121
7121
{
7122
7122
message :
7123
7123
"The 'foo' conditional could make the dependencies of useMemo Hook (at line 4) change on every render. " +
7124
- "Move it inside the useMemo callback. Alternatively, wrap the assignment of 'foo' in its own " +
7124
+ "Move it inside the useMemo callback. Alternatively, wrap the initialization of 'foo' in its own " +
7125
7125
'useMemo() Hook.' ,
7126
7126
suggestions : undefined ,
7127
7127
} ,
@@ -7138,7 +7138,7 @@ const tests = {
7138
7138
{
7139
7139
message :
7140
7140
"The 'foo' logical expression could make the dependencies of useMemo Hook (at line 4) change on every render. " +
7141
- "Move it inside the useMemo callback. Alternatively, wrap the assignment of 'foo' in its own " +
7141
+ "Move it inside the useMemo callback. Alternatively, wrap the initialization of 'foo' in its own " +
7142
7142
'useMemo() Hook.' ,
7143
7143
suggestions : undefined ,
7144
7144
} ,
@@ -7155,7 +7155,7 @@ const tests = {
7155
7155
{
7156
7156
message :
7157
7157
"The 'foo' logical expression could make the dependencies of useMemo Hook (at line 4) change on every render. " +
7158
- "Move it inside the useMemo callback. Alternatively, wrap the assignment of 'foo' in its own " +
7158
+ "Move it inside the useMemo callback. Alternatively, wrap the initialization of 'foo' in its own " +
7159
7159
'useMemo() Hook.' ,
7160
7160
suggestions : undefined ,
7161
7161
} ,
@@ -7172,7 +7172,7 @@ const tests = {
7172
7172
{
7173
7173
message :
7174
7174
"The 'foo' logical expression could make the dependencies of useMemo Hook (at line 4) change on every render. " +
7175
- "Move it inside the useMemo callback. Alternatively, wrap the assignment of 'foo' in its own " +
7175
+ "Move it inside the useMemo callback. Alternatively, wrap the initialization of 'foo' in its own " +
7176
7176
'useMemo() Hook.' ,
7177
7177
suggestions : undefined ,
7178
7178
} ,
@@ -7189,7 +7189,7 @@ const tests = {
7189
7189
{
7190
7190
message :
7191
7191
"The 'foo' conditional could make the dependencies of useMemo Hook (at line 4) change on every render. " +
7192
- "Move it inside the useMemo callback. Alternatively, wrap the assignment of 'foo' in its own " +
7192
+ "Move it inside the useMemo callback. Alternatively, wrap the initialization of 'foo' in its own " +
7193
7193
'useMemo() Hook.' ,
7194
7194
suggestions : undefined ,
7195
7195
} ,
@@ -7206,7 +7206,7 @@ const tests = {
7206
7206
{
7207
7207
message :
7208
7208
"The 'foo' object makes the dependencies of useMemo Hook (at line 4) change on every render. " +
7209
- "Move it inside the useMemo callback. Alternatively, wrap the assignment of 'foo' in its own " +
7209
+ "Move it inside the useMemo callback. Alternatively, wrap the initialization of 'foo' in its own " +
7210
7210
'useMemo() Hook.' ,
7211
7211
suggestions : undefined ,
7212
7212
} ,
@@ -7223,7 +7223,7 @@ const tests = {
7223
7223
{
7224
7224
message :
7225
7225
"The 'foo' object makes the dependencies of useMemo Hook (at line 4) change on every render. " +
7226
- "Move it inside the useMemo callback. Alternatively, wrap the assignment of 'foo' in its own " +
7226
+ "Move it inside the useMemo callback. Alternatively, wrap the initialization of 'foo' in its own " +
7227
7227
'useMemo() Hook.' ,
7228
7228
suggestions : undefined ,
7229
7229
} ,
@@ -7242,7 +7242,7 @@ const tests = {
7242
7242
{
7243
7243
message :
7244
7244
"The 'foo' object makes the dependencies of useCallback Hook (at line 6) change on every render. " +
7245
- "Move it inside the useCallback callback. Alternatively, wrap the assignment of 'foo' in its own " +
7245
+ "Move it inside the useCallback callback. Alternatively, wrap the initialization of 'foo' in its own " +
7246
7246
'useMemo() Hook.' ,
7247
7247
suggestions : undefined ,
7248
7248
} ,
@@ -7261,7 +7261,7 @@ const tests = {
7261
7261
{
7262
7262
message :
7263
7263
"The 'foo' object makes the dependencies of useEffect Hook (at line 6) change on every render. " +
7264
- "Move it inside the useEffect callback. Alternatively, wrap the assignment of 'foo' in its own " +
7264
+ "Move it inside the useEffect callback. Alternatively, wrap the initialization of 'foo' in its own " +
7265
7265
'useMemo() Hook.' ,
7266
7266
suggestions : undefined ,
7267
7267
} ,
@@ -7280,7 +7280,7 @@ const tests = {
7280
7280
{
7281
7281
message :
7282
7282
"The 'foo' object makes the dependencies of useLayoutEffect Hook (at line 6) change on every render. " +
7283
- "Move it inside the useLayoutEffect callback. Alternatively, wrap the assignment of 'foo' in its own " +
7283
+ "Move it inside the useLayoutEffect callback. Alternatively, wrap the initialization of 'foo' in its own " +
7284
7284
'useMemo() Hook.' ,
7285
7285
suggestions : undefined ,
7286
7286
} ,
@@ -7303,7 +7303,7 @@ const tests = {
7303
7303
{
7304
7304
message :
7305
7305
"The 'foo' object makes the dependencies of useImperativeHandle Hook (at line 9) change on every render. " +
7306
- "Move it inside the useImperativeHandle callback. Alternatively, wrap the assignment of 'foo' in its own " +
7306
+ "Move it inside the useImperativeHandle callback. Alternatively, wrap the initialization of 'foo' in its own " +
7307
7307
'useMemo() Hook.' ,
7308
7308
suggestions : undefined ,
7309
7309
} ,
@@ -7322,7 +7322,7 @@ const tests = {
7322
7322
{
7323
7323
message :
7324
7324
"The 'foo' logical expression could make the dependencies of useEffect Hook (at line 6) change on every render. " +
7325
- "Move it inside the useEffect callback. Alternatively, wrap the assignment of 'foo' in its own " +
7325
+ "Move it inside the useEffect callback. Alternatively, wrap the initialization of 'foo' in its own " +
7326
7326
'useMemo() Hook.' ,
7327
7327
suggestions : undefined ,
7328
7328
} ,
@@ -7342,7 +7342,7 @@ const tests = {
7342
7342
{
7343
7343
message :
7344
7344
"The 'foo' object makes the dependencies of useMemo Hook (at line 7) change on every render. " +
7345
- "To fix this, wrap the assignment of 'foo' in its own useMemo() Hook." ,
7345
+ "To fix this, wrap the initialization of 'foo' in its own useMemo() Hook." ,
7346
7346
suggestions : undefined ,
7347
7347
} ,
7348
7348
] ,
@@ -7360,7 +7360,7 @@ const tests = {
7360
7360
{
7361
7361
message :
7362
7362
"The 'foo' JSX fragment makes the dependencies of useMemo Hook (at line 6) change on every render. " +
7363
- "Move it inside the useMemo callback. Alternatively, wrap the assignment of 'foo' in its own useMemo() Hook." ,
7363
+ "Move it inside the useMemo callback. Alternatively, wrap the initialization of 'foo' in its own useMemo() Hook." ,
7364
7364
suggestions : undefined ,
7365
7365
} ,
7366
7366
] ,
@@ -7378,7 +7378,7 @@ const tests = {
7378
7378
{
7379
7379
message :
7380
7380
"The 'foo' JSX element makes the dependencies of useMemo Hook (at line 6) change on every render. " +
7381
- "Move it inside the useMemo callback. Alternatively, wrap the assignment of 'foo' in its own useMemo() Hook." ,
7381
+ "Move it inside the useMemo callback. Alternatively, wrap the initialization of 'foo' in its own useMemo() Hook." ,
7382
7382
suggestions : undefined ,
7383
7383
} ,
7384
7384
] ,
@@ -7396,7 +7396,7 @@ const tests = {
7396
7396
{
7397
7397
message :
7398
7398
"The 'foo' assignment expression makes the dependencies of useMemo Hook (at line 6) change on every render. " +
7399
- "Move it inside the useMemo callback. Alternatively, wrap the assignment of 'foo' in its own useMemo() Hook." ,
7399
+ "Move it inside the useMemo callback. Alternatively, wrap the initialization of 'foo' in its own useMemo() Hook." ,
7400
7400
suggestions : undefined ,
7401
7401
} ,
7402
7402
] ,
@@ -7414,7 +7414,7 @@ const tests = {
7414
7414
{
7415
7415
message :
7416
7416
"The 'foo' object construction makes the dependencies of useMemo Hook (at line 6) change on every render. " +
7417
- "Move it inside the useMemo callback. Alternatively, wrap the assignment of 'foo' in its own useMemo() Hook." ,
7417
+ "Move it inside the useMemo callback. Alternatively, wrap the initialization of 'foo' in its own useMemo() Hook." ,
7418
7418
suggestions : undefined ,
7419
7419
} ,
7420
7420
] ,
@@ -7432,7 +7432,7 @@ const tests = {
7432
7432
{
7433
7433
message :
7434
7434
"The 'foo' object construction makes the dependencies of useMemo Hook (at line 6) change on every render. " +
7435
- "Move it inside the useMemo callback. Alternatively, wrap the assignment of 'foo' in its own useMemo() Hook." ,
7435
+ "Move it inside the useMemo callback. Alternatively, wrap the initialization of 'foo' in its own useMemo() Hook." ,
7436
7436
suggestions : undefined ,
7437
7437
} ,
7438
7438
] ,
@@ -7450,7 +7450,7 @@ const tests = {
7450
7450
{
7451
7451
message :
7452
7452
"The 'foo' regular expression makes the dependencies of useMemo Hook (at line 6) change on every render. " +
7453
- "Move it inside the useMemo callback. Alternatively, wrap the assignment of 'foo' in its own useMemo() Hook." ,
7453
+ "Move it inside the useMemo callback. Alternatively, wrap the initialization of 'foo' in its own useMemo() Hook." ,
7454
7454
suggestions : undefined ,
7455
7455
} ,
7456
7456
] ,
@@ -7468,7 +7468,7 @@ const tests = {
7468
7468
{
7469
7469
message :
7470
7470
"The 'foo' object makes the dependencies of useMemo Hook (at line 6) change on every render. " +
7471
- "Move it inside the useMemo callback. Alternatively, wrap the assignment of 'foo' in its own useMemo() Hook." ,
7471
+ "Move it inside the useMemo callback. Alternatively, wrap the initialization of 'foo' in its own useMemo() Hook." ,
7472
7472
suggestions : undefined ,
7473
7473
} ,
7474
7474
] ,
@@ -7486,7 +7486,7 @@ const tests = {
7486
7486
{
7487
7487
message :
7488
7488
"The 'Bar' class makes the dependencies of useMemo Hook (at line 6) change on every render. " +
7489
- "Move it inside the useMemo callback. Alternatively, wrap the assignment of 'Bar' in its own useMemo() Hook." ,
7489
+ "Move it inside the useMemo callback. Alternatively, wrap the initialization of 'Bar' in its own useMemo() Hook." ,
7490
7490
suggestions : undefined ,
7491
7491
} ,
7492
7492
] ,
@@ -7882,7 +7882,7 @@ const testsTypescript = {
7882
7882
{
7883
7883
message :
7884
7884
"The 'foo' object makes the dependencies of useMemo Hook (at line 6) change on every render. " +
7885
- "Move it inside the useMemo callback. Alternatively, wrap the assignment of 'foo' in its own useMemo() Hook." ,
7885
+ "Move it inside the useMemo callback. Alternatively, wrap the initialization of 'foo' in its own useMemo() Hook." ,
7886
7886
suggestions : undefined ,
7887
7887
} ,
7888
7888
] ,
0 commit comments