react-spring icon indicating copy to clipboard operation
react-spring copied to clipboard

[bug]: uer useTransition render list

Open path-yu opened this issue 3 years ago • 0 comments

Which react-spring target are you using?

  • [X] @react-spring/web
  • [ ] @react-spring/three
  • [ ] @react-spring/native
  • [ ] @react-spring/konva
  • [ ] @react-spring/zdog

What version of react-spring are you using?

9.5.2

What's Wrong?

Using useTransition to render the list, using setState to update and delete the list will trigger render twice,

To Reproduce

  1. Clicking the delete button triggers render twice

Expected Behaviour

List deletion or addition should only trigger render once

Link to repo

https://codesandbox.io/s/youthful-kilby-0zspmc?file=/src/App.js

path-yu avatar Aug 22 '22 10:08 path-yu