Skip to content

Commit 36b4e51

Browse files
committed
feat: add debug prop to SpringContext
This lets you debug a whole subtree at once.
1 parent 91757af commit 36b4e51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/core/src/SpringContext.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export interface SpringContext {
1616
immediate?: boolean
1717
/** Set the default `config` prop for future animations. */
1818
config?: SpringConfig
19+
/** Debug all new and existing animations. */
20+
debug?: boolean
1921
}
2022

2123
const ctx = React.createContext<SpringContext>({})
@@ -33,6 +35,7 @@ export const SpringContext = ({
3335
props.cancel,
3436
props.immediate,
3537
props.config,
38+
props.debug,
3639
])
3740

3841
const { Provider } = ctx

0 commit comments

Comments
 (0)