Skip to content

Commit

Permalink
add useScroll offset param to useEffect dependencies array to allow o…
Browse files Browse the repository at this point in the history
…ffset change (#2273)
  • Loading branch information
kalimantos authored Aug 30, 2023
1 parent 790e6f2 commit f94ff47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/framer-motion/src/value/use-scroll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function useScroll({
target: target?.current || undefined,
}
)
}, [])
}, [JSON.stringify(options.offset)])

return values
}

0 comments on commit f94ff47

Please sign in to comment.