Skip to content

Show provisional visitors instantly after switching candidate#6295

Merged
aerosol merged 1 commit intomasterfrom
fix-flashing-visitors
Apr 30, 2026
Merged

Show provisional visitors instantly after switching candidate#6295
aerosol merged 1 commit intomasterfrom
fix-flashing-visitors

Conversation

@aerosol
Copy link
Copy Markdown
Member

@aerosol aerosol commented Apr 30, 2026

Changes

When a new candidate is selected in an already occupied column, funnel[i] still holds the old funnel data (the new funnel hasn't loaded yet). So funnel[i].visitors is truthy and shadows the newly set provisionalFunnelEntries[i].visitors, causing the old visitor count to flash until the API response arrives.

This PR fixes it by making provisionalFunnelEntries take precedence over the stale funnel data.

@aerosol aerosol requested a review from zoldar April 30, 2026 09:11
@zoldar zoldar added the preview label Apr 30, 2026
@github-actions
Copy link
Copy Markdown

Preview environment👷🏼‍♀️🏗️
PR-6295

@aerosol aerosol force-pushed the fix-flashing-visitors branch from 4b0636d to 574bcad Compare April 30, 2026 09:31
@aerosol aerosol enabled auto-merge April 30, 2026 09:37
@aerosol aerosol added this pull request to the merge queue Apr 30, 2026
Merged via the queue into master with commit 64d9ead Apr 30, 2026
58 of 60 checks passed
@aerosol aerosol deleted the fix-flashing-visitors branch April 30, 2026 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants