Skip to content
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

[DevTools Bug]: Incorrect source location after hot reload & editing props #23130

Open
kiootic opened this issue Jan 17, 2022 · 0 comments
Open
Labels
Component: Developer Tools Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug Type: Bug

Comments

@kiootic
Copy link

kiootic commented Jan 17, 2022

Website or app

https://gist.github.com/kiootic/54986cd163b52cbbcd5d8283eb5ed06f

Repro steps

  1. Create a new react app using create-react-app
  2. Replace the code in App.js with App.jsx in the gist
  3. Start the app and inspect the 3 p elements using dev tool
  4. Should observe correct line numbers (App.js:4, App.js:5, App.js:6)
  5. In code editor, change the first p element to be multiline, like App-update.jsx in gist
  6. After hot reload, should observe updated line numbers (App.js:4, App.js:7, App.js:8)
  7. Using dev tool, change the first p element's children prop to be something else.
  8. Should observe incorrect line numbers (reverted to App.js:4, App.js:5, App.js:6)
  9. Repeat step 7 again, and should observe correct line numbers again.
  10. The line numbers are observed to be alternating between correct & incorrect state when repeating the edit step.

How often does this bug happen?

Every time

DevTools package (automated)

No response

DevTools version (automated)

No response

Error message (automated)

No response

Error call stack (automated)

No response

Error component stack (automated)

No response

GitHub query string (automated)

No response

@kiootic kiootic added Component: Developer Tools Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug Type: Bug labels Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Developer Tools Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug Type: Bug
Projects
None yet
Development

No branches or pull requests

1 participant