Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: no polling when hidden #26912

Merged
merged 2 commits into from
Dec 14, 2024
Merged

fix: no polling when hidden #26912

merged 2 commits into from
Dec 14, 2024

Conversation

pauldambra
Copy link
Member

i noticed that a backgrounded tab had checked for important changes every 5 minutes for over a day

Screenshot 2024-12-13 at 21 34 53

that seems unecessary, let's pause that when hidden and restart when not

@pauldambra pauldambra requested a review from a team December 13, 2024 22:33
@@ -191,6 +191,13 @@ export const sidePanelActivityLogic = kea<sidePanelActivityLogicType>([
actions.setActiveTab(options as SidePanelActivityTab)
}
},
togglePolling: ({ pageIsVisible }) => {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we already called this... we just ignored it

Copy link
Contributor

github-actions bot commented Dec 13, 2024

Size Change: 0 B

Total Size: 1.11 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.11 MB

compressed-size-action

@pauldambra pauldambra enabled auto-merge (squash) December 13, 2024 22:49
@pauldambra pauldambra merged commit 998b4ac into master Dec 14, 2024
96 checks passed
@pauldambra pauldambra deleted the fix/pd/no-poll-when-hidden branch December 14, 2024 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants