Closed
Description
An example with useState
and useReplicant
:
const [data, setData] = React.useState(0);
setData(previousData => previousData + 1);
const [replicant, setReplicant] = useReplicant(0);
setReplicant(previousData => previousData + 1); // this is not supported!
Would be great if that was supported, because old values could be captured when using useEffect
for example.
Metadata
Metadata
Assignees
Labels
No labels