We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Environment
@preact/signals-core
@preact/signals
@preact/signals-react
Describe the bug
When we pass a signal to an event-handler, the event-handler does not update when the signal updates.
To Reproduce
https://codesandbox.io/p/sandbox/quizzical-dubinsky-2t6fph?file=%2Fsrc%2Findex.js%3A3%2C10&workspaceId=2e3797ed-dfbc-47a1-a0f6-cc1df3dc9874
Steps to reproduce the behavior:
After 5 seconds the event-handler will switch to one where you type it will change the value to bonk.
Expected behavior
It should not invoke the old handler (see logs).
To fix this we might need to opt out event handlers from the optimized update path.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Environment
@preact/signals-core
@preact/signals
@preact/signals-react
Describe the bug
When we pass a signal to an event-handler, the event-handler does not update when the signal updates.
To Reproduce
https://codesandbox.io/p/sandbox/quizzical-dubinsky-2t6fph?file=%2Fsrc%2Findex.js%3A3%2C10&workspaceId=2e3797ed-dfbc-47a1-a0f6-cc1df3dc9874
Steps to reproduce the behavior:
After 5 seconds the event-handler will switch to one where you type it will change the value to bonk.
Expected behavior
It should not invoke the old handler (see logs).
To fix this we might need to opt out event handlers from the optimized update path.
The text was updated successfully, but these errors were encountered: