Closed MarconLP closed 1 month ago
Maybe something with Kea @mariusandra?
Unlikely to be kea per se, but likely we're dispatching actions with non-jsonable content somewhere that's causing issues when devtools inspect it. Things like self-references or large objects (e.g. window
) that shouldn't be there in the first place.
If this is happening on your site, then it's likely it only happens when the toolbar is enabled, not when you're just using posthog-js to track events.
As the original reporter of this bug, I will clarify that this issue occurs for me when visiting app.posthog.com
If redux dev tools extension is enabled, then the site will become unusable.
Here's a video to illustrate; look for yellow circles around the mouse to show click actions. I move the mouse around after clicking to show I'm waiting on the site.
https://github.com/PostHog/posthog/assets/3361507/7a48a3a9-981c-4aee-852d-4eaf20b5895f
I guess it's this https://github.com/reduxjs/redux-devtools/issues/437
and there's a proposed fix in an approved by unmerged PR from 2019 🤯 so I guess if we want to fix this it needs to be in posthog :)
+1 https://posthoghelp.zendesk.com/agent/tickets/17383 +1 https://posthoghelp.zendesk.com/agent/tickets/17206 +1 https://posthoghelp.zendesk.com/agent/tickets/17311 +1 https://posthoghelp.zendesk.com/agent/tickets/17351 +1 https://posthoghelp.zendesk.com/agent/tickets/17271 +1 https://posthoghelp.zendesk.com/agent/tickets/17353
should be fixed by https://github.com/PostHog/posthog/pull/24611
so we can't use redux dev tools when debugging posthog in dev but that's a trade-off that's worth it to avoid this
Replied to all the tickets listed above to let them know the good news. Closing (should be fixed by https://github.com/PostHog/posthog/pull/24611 )
Bug description
It seems that Redux DevTools are causing the slowdown, perhaps because the developer version of Redux is being distributed in production, or some subset is being included for production debugging.
How to reproduce
Additional context
related ticket: https://posthoghelp.zendesk.com/agent/tickets/5822
Thank you for your bug report – we love squashing them!