Skip to content

Fix Dark Mode Subscription Logic#67

Merged
lauslim12 merged 3 commits intomainfrom
fix-dark-mode-subscription
Jan 20, 2026
Merged

Fix Dark Mode Subscription Logic#67
lauslim12 merged 3 commits intomainfrom
fix-dark-mode-subscription

Conversation

@lauslim12
Copy link
Copy Markdown
Owner

@lauslim12 lauslim12 commented Jan 20, 2026

Fix Dark Mode subscription logic. We should subscribe outside of the React Component to ensure that only one listener updates the DOM. TanStack Store doesn't really have any requirement for it to be inside the React component.

Also added a test to make sure that Dark Mode works.

@lauslim12 lauslim12 force-pushed the fix-dark-mode-subscription branch from d911a62 to 157f43f Compare January 20, 2026 15:20
@lauslim12 lauslim12 merged commit 726585b into main Jan 20, 2026
2 checks passed
@lauslim12 lauslim12 deleted the fix-dark-mode-subscription branch January 20, 2026 15:25
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.

1 participant