File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 11import * as React from 'react'
2+ import { version as reactVersion } from 'react/package.json'
23import { useContext , useRef , useMemo } from 'react'
34import { Lookup , OneOrMore , UnknownProps } from '@react-spring/types'
45import {
@@ -436,6 +437,7 @@ export function useTransition(
436437 < elem . type
437438 { ...elem . props }
438439 key = { is . str ( t . key ) || is . num ( t . key ) ? t . key : t . ctrl . id }
440+ ref = { reactVersion < '19.0.0' ? elem . ref : elem . props . ref }
439441 />
440442 ) : (
441443 elem
Original file line number Diff line number Diff line change 2626 "allowSyntheticDefaultImports" : true ,
2727 "esModuleInterop" : true ,
2828 "skipLibCheck" : true ,
29- "strictNullChecks" : true
29+ "strictNullChecks" : true ,
30+ "resolveJsonModule" : true
3031 }
3132}
You can’t perform that action at this time.
0 commit comments