Idle events #148
Unanswered
skullicious
asked this question in
Help
Idle events
#148
Replies: 1 comment 2 replies
-
@skullicious Hi, I pushed a new version a few hours before which resolved an issue with the idle events. Would you try if your event is working now? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
I'm trying to get at the idle event so I can hook into it at some level from Cypress to test the map once it's finished zooming and panning (snapshot image diffs are slightly off sometimes, so I'm having to add wait(10000) to all of my assertions.
I tried natively adding with
`useEffect(() => {
if (mapReady) {
const listener = window.google.maps.event.addListener(mapRef.current, 'idle', handleIdle);
}, [mapReady]);`
But it only fires once when I first load the page.
I had a look at the Events array prop but that only seems to support standard DOM events.
So I thought I'd try IdleContent prop and just use the presence of that in the markup but I don't see that rendered anywhere in the markup (I expected it would be rendered the same as LoadingContent).
Any ideas?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions