I have an issue with the "compiled" / deployed version of my app but not on the local hot reload #1204
-
My issue is concerning TypeError: r.willAdvance is not a function
update FrameLoop.ts:164
gi React
update FrameLoop.ts:160
a FrameLoop.ts:248 I use it in combination with drag & drop event to provide a swipe action between containers horizontally aligned. There is an extract of my code: const [props, set] = useSprings(children.length, () => ({
x: 0,
scale: 1,
display: 'block'
}))
const tickUpdate = () => {
set(i => {
if (i < index.current - 1 || i > index.current + 1) {
return { display: 'none' }
}
const x = (i - index.current) * root.current.clientWidth + innerProps.distance
const scale = 1 - Math.abs(innerProps.distance) / root.current.clientWidth / 2
return { x, scale, display: 'block' }
}) My issue like title said happen only on the deployed version (not on the local hot reload version) and I'm using the latest webpack |
Beta Was this translation helpful? Give feedback.
Answered by
aleclarson
Nov 23, 2020
Replies: 1 comment
-
See here: #1078 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
aleclarson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See here: #1078