-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add POC "React Renders" panel #8915
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
markerikson
force-pushed
the
feature/FE-1304-react-renders-list
branch
from
March 10, 2023 01:33
f5aa95c
to
444c9c7
Compare
✅ QA Wolf - Deploy PRMuffin here: 4 tests ran, see details here. |
E2E Tests58 replays were recorded for 7a85bc0. 17 Failedcypress-01: Test basic cypress reporter functionality
41 Passed
breakpoints-07: rewind and seek using command bar and console messages
Snapshot Tests1 replays were recorded for 7a85bc0. 1 Failedshould account for column breakpoints
|
markerikson
changed the title
[DRAFT] Add POC "React Renders" panel
Add POC "React Renders" panel
Mar 11, 2023
markerikson
force-pushed
the
feature/FE-1304-react-renders-list
branch
from
March 11, 2023 04:31
deaf30c
to
7a85bc0
Compare
jasonLaster
approved these changes
Mar 11, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR:
setState
(or even a Reduxdispatch
, which ends up queueing a re-render). The implementation:react-dom.development.js
scheduleUpdateOnFiber
, which is a central point that all queued React updates funnel throughscheduleUpdate
got hitnode_modules
, and finds the oldest stack frame in what is presumably user code, which should be the code that triggered the state update and queued the rendersetState
call with the filename and function, as well as list items for each committed renderThis is still very much a POC, and I've only tested it with
react-dom.development
in React 18.2.But the principle seems pretty solid, and it's worked perfectly in the two recordings (a Redux CSB and a Replay UI recording) I've tested it on.