Skip to content

Commit

Permalink
fix: spring prod missing willAdvance method
Browse files Browse the repository at this point in the history
  • Loading branch information
cncolder committed Jul 14, 2020
1 parent bda9675 commit a9c38dc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/react-spring/animated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ for (const key of Object.keys(elements)) {
animated[key] = animated(element)
}

// Globals.assign({
// defaultElement: View,
// })
Globals.assign({
// BUG 只有产品环境编译后才会调用 willAdvance, 开发环境发现不了这个 BUG.
willAdvance: () => {},
})

export { animated as a, animated }

0 comments on commit a9c38dc

Please sign in to comment.