You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/scan/README.md
+13-61Lines changed: 13 additions & 61 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -335,113 +335,65 @@ export interface Options {
335
335
* @defaulttrue
336
336
*/
337
337
enabled?:boolean;
338
-
/**
339
-
* Include children of a component applied with withScan
340
-
*
341
-
* @defaulttrue
342
-
*/
343
-
includeChildren?:boolean;
344
338
345
339
/**
346
-
* Enable/disable geiger sound
340
+
* Force React Scan to run in production (not recommended)
347
341
*
348
-
* @defaulttrue
342
+
* @defaultfalse
349
343
*/
350
-
playSound?:boolean;
351
-
344
+
dangerouslyForceRunInProduction?:boolean;
352
345
/**
353
346
* Log renders to the console
354
347
*
348
+
* WARNING: This can add significant overhead when the app re-renders frequently
349
+
*
355
350
* @defaultfalse
356
351
*/
357
352
log?:boolean;
358
353
359
354
/**
360
355
* Show toolbar bar
361
356
*
357
+
* If you set this to true, and set {@linkenabled} to false, the toolbar will still show, but scanning will be disabled.
358
+
*
362
359
* @defaulttrue
363
360
*/
364
361
showToolbar?:boolean;
365
362
366
-
/**
367
-
* Render count threshold, only show
368
-
* when a component renders more than this
369
-
*
370
-
* @default0
371
-
*/
372
-
renderCountThreshold?:number;
373
-
374
-
/**
375
-
* Clear aggregated fibers after this time in milliseconds
376
-
*
377
-
* @default5000
378
-
*/
379
-
resetCountTimeout?:number;
380
-
381
-
/**
382
-
* Maximum number of renders for red indicator
383
-
*
384
-
* @default20
385
-
* @deprecated
386
-
*/
387
-
maxRenders?:number;
388
-
389
-
/**
390
-
* Report data to getReport()
391
-
*
392
-
* @defaultfalse
393
-
*/
394
-
report?:boolean;
395
-
396
-
/**
397
-
* Always show labels
398
-
*
399
-
* @defaultfalse
400
-
*/
401
-
alwaysShowLabels?:boolean;
402
-
403
363
/**
404
364
* Animation speed
405
365
*
406
366
* @default"fast"
407
367
*/
408
368
animationSpeed?:"slow"|"fast"|"off";
409
369
410
-
/**
411
-
* Smoothly animate the re-render outline when the element moves
412
-
*
413
-
* @defaulttrue
414
-
*/
415
-
smoothlyAnimateOutlines?:boolean;
416
-
417
370
/**
418
371
* Track unnecessary renders, and mark their outlines gray when detected
419
372
*
420
-
* An unnecessary render is defined as a component re-rendering with no change to the component's corresponding dom subtree (e.g. a component re-rendered, but nothing in the components UI did not change)
373
+
* An unnecessary render is defined as the component re-rendering with no change to the component's
374
+
* corresponding dom subtree
421
375
*
422
-
* @defaulttrue
376
+
* @defaultfalse
423
377
* @warning tracking unnecessary renders can add meaningful overhead to react-scan
0 commit comments