framer-motion-ticker icon indicating copy to clipboard operation
framer-motion-ticker copied to clipboard

Getting "Cannot read properties of undefined (reading 'map')" when using the component in a conditional or is display: none;

Open adamatronix opened this issue 9 months ago • 0 comments

Hi,

First off great little package. However in my use case, I have mobile and desktop layouts which need to be either toggled via match media or css media queries.

For css media queries, if the parent is hidden the Ticker will throw TypeError: Cannot read properties of undefined (reading 'map')

My alternative solution was to have a conditional using match media to only load the Ticker if at the proper viewport width. But that throws the same errors. Not sure if it's a race condition in this case.

adamatronix avatar Sep 11 '23 04:09 adamatronix