-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: merge
AnimatedProps
into withAnimated
- Loading branch information
1 parent
32920d6
commit 161c1ae
Showing
5 changed files
with
66 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
import { FluidValue } from '@react-spring/shared' | ||
import { HostConfig } from './createHost' | ||
|
||
export type TreeContext = { | ||
dependencies: Set<FluidValue> | ||
host: HostConfig | ||
/** | ||
* Any animated values found when updating the payload of an `AnimatedObject` | ||
* are also added to this `Set` to be observed by an animated component. | ||
*/ | ||
dependencies: Set<FluidValue> | null | ||
} | ||
|
||
export const TreeContext: { current: TreeContext | null } = { current: null } | ||
export const TreeContext: TreeContext = { dependencies: null } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters