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

change props or hook state in dev-tool won't trigger re-render ? #17171

Closed
littlee opened this issue Oct 23, 2019 · 3 comments
Closed

change props or hook state in dev-tool won't trigger re-render ? #17171

littlee opened this issue Oct 23, 2019 · 3 comments

Comments

@littlee
Copy link

littlee commented Oct 23, 2019

Do you want to request a feature or report a bug?
bug

What is the current behavior?
change props or hook state won't trigger re-render
Oct-24-2019 00-05-34

What is the expected behavior?
change props or hook state should trigger re-render

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

"react": "^16.10.2",
"react-dom": "^16.10.2",

chrome 78.0.3904.70
macos Catalina 10.15
@bvaughn
Copy link
Contributor

bvaughn commented Oct 23, 2019

You have to "ENTER" to confirm the change. Otherwise you're just previewing it. (We wouldn't want to re-render on every character you enter, because there could be a lot of intermediate incorrect values.)

#17043 is a ticket about updating on blur as well, FWIW.

@littlee
Copy link
Author

littlee commented Oct 23, 2019

BTW, when can hooks state has name or something in devtool? It's hard to identify them with the value only.

hooks:
  State: 1
  State: 2

@bvaughn
Copy link
Contributor

bvaughn commented Oct 23, 2019

#16474

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants