Rob
Rob
This totally tripped me. Thanks for sharing it.
I am experiencing the same issue. Have you found a solution?
I figured it out. You need to initialize it when the elements are visible. ``` $('.modal').on('shown.bs.modal', function (e) { // do your init here }); ```
This is how I solved this: ``` import { useMeasure } from "react-use"; ... const [ready, setReady] = useState(false); const [ref, { width, height }] = useMeasure(); ... useEffect(()=>{ if(width...