dillon1000/react
Commit
Browse files Profiler integration with interaction-tracking package (#13253)
* Updated suspense fixture to use new interaction-tracking API * Integrated Profiler API with interaction-tracking API (and added tests) * Pass interaction Set (rather than Array) to Profiler onRender callback * Removed some :any casts for enableInteractionTracking fields in FiberRoot type * Refactored threadID calculation into a helper method * Errors thrown by interaction tracking hooks use unhandledError to rethrow more safely. Reverted try/finally change to ReactTestRendererScheduling * Added a $FlowFixMe above the FiberRoot :any cast * Reduce overhead from calling work-started hook * Remove interaction-tracking wrap() references from unwind work in favor of managing suspense/interaction continuations in the scheduler * Moved the logic for calling work-started hook from performWorkOnRoot() to renderRoot() * Add interaction-tracking to bundle externals. Set feature flag to __PROFILE__ * Renamed the freezeInteractionCount flag and replaced one use-case with a method param * let -> const * Updated suspense fixture to handle recent API changes
Changed paths14 files
First-parent comparisonfixtures/unstable-async/suspense/package.json ModifiedM fixtures/unstable-async/suspense/src/components/App.js ModifiedM fixtures/unstable-async/suspense/src/index.js ModifiedM fixtures/unstable-async/suspense/yarn.lock ModifiedM packages/react-reconciler/src/ReactFiber.js ModifiedM packages/react-reconciler/src/ReactFiberCommitWork.js ModifiedM packages/react-reconciler/src/ReactFiberRoot.js ModifiedM packages/react-reconciler/src/ReactFiberScheduler.js ModifiedM packages/react/src/__tests__/ReactProfiler-test.internal.js ModifiedM packages/react/src/__tests__/ReactProfilerDevToolsIntegration-test.internal.js ModifiedM packages/react/src/__tests__/__snapshots__/ReactProfiler-test.internal.js.snap ModifiedM packages/shared/ReactFeatureFlags.js ModifiedM scripts/rollup/bundles.js ModifiedM scripts/rollup/modules.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…