()
| 223 | let enterSpring: any = null |
| 224 | |
| 225 | function Component() { |
| 226 | useSpring({ ref: springRef, from: { x: 0 }, to: { x: 1 } }) |
| 227 | const transition = toArray( |
| 228 | useTransition(true, { |
| 229 | ref: transRef, |
| 230 | from: { n: 0 }, |
| 231 | enter: { n: 1 }, |
| 232 | leave: { n: 0 }, |
| 233 | }) |
| 234 | )[0] |
| 235 | transition(style => { |
| 236 | enterSpring = style.n |
| 237 | return null |
| 238 | }) |
| 239 | useChain([springRef, transRef]) |
| 240 | return null |
| 241 | } |
| 242 | |
| 243 | await render(<Component />) |
| 244 |
nothing calls this directly
no test coverage detected
searching dependent graphs…