-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
bug: signal.value in JSX does not trigger rerender using @preact/signals-react ^1.2.0 #298
Comments
If I change |
It works fine with |
Any update on it? sadly i can't use the swc plugin of vite due to a bug in other lib |
This isn't an error with Signals exactly. The line of code |
@sbesh91 https://stackblitz.com/edit/vitejs-vite-vtubyq?file=src/App.tsx |
@XantreGodlike well that's quite strange. I went ahead and forked that repro as well. It looks like the only difference here is on the button render. You're also right that the https://stackblitz.com/edit/vitejs-vite-kbch31?file=src%2Fmain.tsx,src%2FApp.tsx |
I've just noticed the same thing. This is my reproduction: https://stackblitz.com/edit/vitejs-vite-csqbr6?file=src%2FApp.jsx EDIT: I confirm that switching to export default defineConfig({
plugins: [
react({
jsxRuntime: 'classic',
}),
],
}); |
Starting from
@preact/[email protected]
, accessing signal value viasignal.value
in JSX does not trigger rerender when signal value is changed.Reproduction: Stackblitz
The text was updated successfully, but these errors were encountered: