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: README.md
+14-9Lines changed: 14 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -248,9 +248,14 @@ if (typeof window !== 'undefined') {
248
248
249
249
</details>
250
250
251
-
-`scan(options)`: Imperative API to start scanning
252
-
-`useScan(options)`: Hook API to start scanning
253
-
-`withScan(Component, options)`: Useful if you only want to scan a specific component
251
+
-`scan(options: Options)`: Imperative API to start scanning
252
+
-`useScan(options: Options)`: Hook API to start scanning
253
+
-`withScan(Component, options: Options)`: Whitelist a specific component, do not scan other components
254
+
-`getReport()`: Get a report of all the renders
255
+
-`setOptions(options: Options): void`: Set options at runtime
256
+
-`getOptions()`: Get the current options
257
+
-`onRender(Component, onRender: (fiber: Fiber, render: Render) => void)`: Hook into a specific component's renders
258
+
-`getRenderInfo(Component)`: Get the render info for a specific component
254
259
255
260
## Why React Scan?
256
261
@@ -323,18 +328,18 @@ We expect all contributors to abide by the terms of our [Code of Conduct](https:
323
328
-[x] Don't show label if no reconciliation occurred ("client renders" in DevTools)
324
329
-[x] "global" counter using `sessionStorage`, aggregate count stats instead of immediate replacement
325
330
-[x] Give a general report of the app's performance
326
-
-[ ] checkbox filtering API, leaderboard
327
-
-[ ] Offscreen canvas on worker thread
331
+
-[x] Select areas of the screen to scan
332
+
-[x] Report should include all renders
328
333
-[x] heatmap decay (stacked renders will be more intense)
329
-
-[ ] Investigate components (UI allowlist)
334
+
-[x] Investigate components (UI allowlist)
335
+
-[ ] Offscreen canvas on worker thread
330
336
-[ ] UI for turning on/off options
331
337
-[ ] “PageSpeed insights” for React
338
+
-[ ] CLI
332
339
-[ ] React Native support
340
+
-[ ] Cleanup API reference
333
341
-[ ] Name / explain the actual problem, docs
334
342
-[ ] Simple FPS counter
335
-
-[ ] Drag and select areas of the screen to scan
336
-
-[ ] Long task progress bar filter
337
-
-[x] Report should include all renders
338
343
-[ ][Runtime version guarding](https://github.com/lahmatiy/react-render-tracker/blob/229ad0e9c28853615300724d5dc86c140f250f60/src/publisher/react-integration/utils/getInternalReactConstants.ts#L28)
339
344
-[ ] React as peer dependency (lock version to range)
340
345
-[ ] Add a funny mascot, like the ["Stop I'm Changing" dude](https://www.youtube.com/shorts/FwOZdX7bDKI?app=desktop)
0 commit comments