fix: Views tabs show 1 view in other boards#734
Merged
Xavier-Charles merged 3 commits intodevfrom Jan 21, 2026
Merged
Conversation
elcharitas
approved these changes
Jan 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem Summary
When navigating from the main page "/" (showing 12 subscribed views) to another view like "/ethereum", the subscribedViews count dropped from 12 to 1. Root Cause: In [useView.ts:281], when addViewToCache is called for a subscribed view, it calls:
The updateSubscribedViewsCache reducer was designed to replace the entire cache with whatever array is passed to it. So passing a single-item array [viewPreview] wiped out all 11 other subscribed views.
Fix
Created a new Redux action addOrUpdateSubscribedView that:
Changed useView.ts:281 to use the new action:
This preserves the original updateSubscribedViewsCache behavior (used to sync full server state) while fixing the single-view update case.
Also added and updated tests