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

[v9] Release #1330

Merged
merged 1,535 commits into from
Mar 23, 2021
Merged

[v9] Release #1330

merged 1,535 commits into from
Mar 23, 2021

Conversation

joshuaellis
Copy link
Member

It's been a while since a stable release. There have been some setbacks, but I think our goal should be to launch v9 as stable and fix from there. We've had 3 rc releases and they've been great.

Hopefully with the release of a stable version people will have the confidence & motivation to fix bugs that they're experiencing for themselves to make this library stronger 💪🏼

There's 2 small things we need to do first, but this way I can track which issues should be resolved with this release and attach them accordingly.

🎉

This affects `update` and `leave` too.

Closes #1000
Avoid merging `{default: context}` updates when `context` is empty, because it can get in the way of debugging.
This function will call every queued function with the same arguments.
SpringValue already worked, but Controller did not
- For the `pause` prop, check the `props.default` object (if one exists) before checking the `props` object.
- Let the default `cancel` prop affect the current async animation.
- Ensure each `SpringValue` object still has its default props updated when `pause: true` is defined.
- Respect the `delay` prop when `cancel: true` is defined with no explicit keys in the same update.
Previously, the `pause` prop would override `default.pause` except when the latter was true.

Now, the `pause` prop must be a boolean before `default.pause` is overridden.

This ensures the paused async animation is resumed (if one exists) when the default `pause` prop is changed to false.
Cancellation can lead to unintended outcomes, like a transition being reset to its previous phase.
By allowing any Function type, the compiler wont try the next overload, but we still get type checking of props!
The `Controller.springs` and `SpringValue.animation` properties are overridden to throw on access.
Handlers are called once per paused/resumed value.

Event batching is not currently implemented.
This behavior was changed by 4de9fd0
localjo and others added 2 commits March 18, 2021 22:23
this was causing some elements to have an extra viewport height gap. see issue for more details.

fixes #962

Co-authored-by: Josh Ellis <joshua.ellis18@gmail.com>
Co-authored-by: Josh Ellis <joshua.ellis18@gmail.com>
@joshuaellis joshuaellis marked this pull request as ready for review March 23, 2021 11:14
@codesandbox-ci
Copy link

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 a9b80a4:

Sandbox Source
spring-card Configuration
spring-goo-blobs Configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment