Skip to content
New issue

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

fix: update all values of animated array (#1430) #1550

Merged
merged 1 commit into from
Jun 7, 2021

Conversation

midanosi
Copy link
Contributor

@midanosi midanosi commented Jun 6, 2021

Why

Fixing bug #1430

What

Implemented suggested fix by a user in that thread, and wrote a unit test too.
I confirmed that the unit test failed in the expected way when the fix was not applied - i.e. spring of [10,20] is then updated to [11,21], but the resulting prop on animated div is still [11,20], because only the first animated value in the array was being updated.

Checklist

  • Documentation updated
  • Demo added
  • Ready to be merged

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 6, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 9ca5cc2:

Sandbox Source
spring-card Configuration
spring-goo-blobs Configuration
spring-flip-card Configuration
spring-slide Configuration
spring-draggable-list Configuration
spring-cards-stack Configuration
spring-viewpager Configuration
spring-simple-transition Configuration
spring-image-fade Configuration
spring-list-reordering Configuration

@joshuaellis joshuaellis mentioned this pull request Jun 7, 2021
2 tasks
@joshuaellis joshuaellis changed the base branch from master to 1518 June 7, 2021 12:59
Copy link
Member

@joshuaellis joshuaellis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution especially the test! I've merged this into another PR focussed on fixing some r3f related issues, so it will be released in one patch.

@joshuaellis joshuaellis merged commit 8ed21bd into pmndrs:1518 Jun 7, 2021
joshuaellis added a commit that referenced this pull request Jun 7, 2021
…1551)

* chore: depreciate three-v5

* chore: add three-demo

* feat: move rafz to part of monorepo

* fix: use new rafz property to let r3f drive animation frames

resolves #1518

* chore: delete travis

* test: import from @react-spring/rafz

* fix: update all values of animated array (#1430) (#1550)

Co-authored-by: Michael Hutchings <michael.hutchings@cambridgeconsultants.com>

* chore: update lock

* fix: typescript errors

* fix: allow declare

Co-authored-by: Michael Hutchings <33626784+midanosi@users.noreply.github.com>
Co-authored-by: Michael Hutchings <michael.hutchings@cambridgeconsultants.com>
cameron-martin pushed a commit to cameron-martin/react-spring that referenced this pull request May 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants