Closed
Description
- Check if updating to the latest Preact version resolves the issue
Describe the bug
I have a simple Component(TestComponent.jsx) that has a single state 'loading' that changes after an async action. If I have a signal in a child component, the loading state change doesn't trigger a new render.
To Reproduce
Issue can be reproduced here https://stackblitz.com/edit/create-preact-starter-dbmgvvks?file=src%2FTestChild.jsx
Steps to reproduce the behavior:
- Go to the link
- The UI gets stuck at Loading...
Expected behavior
The Loading... text gets replaced with the contents of the chid component TestChild
. If I remove the below line from TestChild component it works fine.
import { signal, computed } from '@preact/signals'
Metadata
Metadata
Assignees
Labels
No labels