Skip to content

onStart called after first animation tick #1996

Discussion options

You must be logged in to vote

Hi @Jacobjepsen27

Sorry to hear it took you a while to figure this out, it is documented (albeit rather small) in the current docs here – https://react-spring.dev/common/props#events-as-functions, I've made this more prevalent in the new docs here – https://beta.react-spring.dev/docs/advanced/events#onstart

It really depends on how you're starting your animation. Realistically I don't think it's something we're going to add I would look at using an effect if your animation is trigger by an update of the item argument otherwise if you're using the imperative api then you can flag this at the same time you call the api.

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@Jacobjepsen27
Comment options

@joshuaellis
Comment options

@Jacobjepsen27
Comment options

@Jacobjepsen27
Comment options

Answer selected by Jacobjepsen27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants