We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onRest in the following example is never called
const transition = useTransition(isOpen, { from: { opacity: 0, }, enter: (active) => { return { opacity: 1, onRest: () => { console.log("Enter completed"); }, }; }, leave: { opacity: 0, }, });
In these one it works
const transition = useTransition(isOpen, { from: { opacity: 0, onRest: () => { console.log("Hello 1"); }, }, enter: { opacity: 1, onRest: () => { console.log("Enter completed") }, }, leave: { opacity: 0, }, });
The text was updated successfully, but these errors were encountered:
Bug confirmed: https://codesandbox.io/s/react-spring-1000-bq7wu
Sorry, something went wrong.
fix: returning an object from enter function
enter
7d140fc
This affects `update` and `leave` too. Closes #1000
85092ed
Fixed in 9.0.0-rc.3
9.0.0-rc.3
https://codesandbox.io/s/fixed-react-spring-1000-bzlng?file=/src/App.tsx
No branches or pull requests
onRest in the following example is never called
In these one it works
The text was updated successfully, but these errors were encountered: