-
-
Notifications
You must be signed in to change notification settings - Fork 122
Open
Description
- Check if updating to the latest version resolves the issue
Environment
- I am using
@preact/signals-core - I am using
@preact/signals - I am using
@preact/signals-react- I understand usage changed in v2, and I've followed the React Integration instructions
Describe the bug
<For> only renders once for each value in the list, which causes issues when its children reference non-signal values from the parent scope
To Reproduce
Please provide a link to a StackBlitz/CodeSandbox/Codepen project or a GitHub repository that demonstrates the issue.
Steps to reproduce the behavior:
- Go to https://codesandbox.io/p/sandbox/vz46dt
- Click "Add Item". A random number should appear in the list.
- Check "Show Details". Nothing happens.
- Click "Add Item" again. The new number shows a timestamp.
Expected behavior
I expect checking the "Show Details" box to update the existing list items to show timestamps. Or if this is intentional behaviour, it should at least be mentioned in the documentation
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels