React-spring: How can i use advanced api of `useTransition` in Typescript?

Created on 15 May 2020  路  5Comments  路  Source: pmndrs/react-spring

馃 Question

How can i replay MessageHub case in Typescript? Its looks like type of this API is not completed.

type definition provider in v8 is not support async config like

enter: item => async next => await next({ opacity: 1, height: refMap.get(item).offsetHeight }),

https://codesandbox.io/s/messagehub-in-typescript-1pkg7

question

All 5 comments

Please try with v9:

npm install react-spring@next -E

Hi @aleclarson

Is v9 is a stable version for production env?
Its looks like have some break change from v8. Can i simply upgrade it and just fix its break change? Or maybe should have a type definition patch in stable version?

Thanks for you reply.

v9 is more stable than v8 now. 馃憤

Breaking changes are listed here.

Well, thanks for you reply.

I will try to migrate from v8 to v9. and close this issue.

v9 is more stable than v8 now. 馃憤

Breaking changes are listed here.

Keep that good work!

Was this page helpful?
0 / 5 - 0 ratings