Skip to content

Conversation

@srubin
Copy link

@srubin srubin commented Feb 6, 2026

Summary

How did you test this change?

Prompt: Looking at @compiler/packages/babel-plugin-react-compiler/src/__tests__/fixtures/compiler/stable-handler/stable-handler-prop-basic.expect.md -- I see
   two potential problems. It looks to me like the onClick that is being passed to <button> will be re-created whenever `value` changes. It also looks
  like `t1` is only capturing the value of `onSubmit` when `value` changes. What we want instead is for `onClick` to never update, and to always
  capture the latest values of `value` and `onSubmit`.
@srubin srubin self-assigned this Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant