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

Update particles-demo.tsx #286

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

qamarq
Copy link

@qamarq qamarq commented Aug 26, 2024

I updated theme prop from useTheme hook to resolvedTheme cause of case with system theme. In theme prop in that case will be "system" but in resolvedTheme var will be "dark" or "light"

I updated `theme` prop from useTheme hook to `resolvedTheme` cause of case with system theme. In `theme` prop in that case will be "system" but in `resolvedTheme` var will be "dark" or "light"
Copy link

vercel bot commented Aug 26, 2024

@qamarq is attempting to deploy a commit to the product-studio Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@SaifNasir196 SaifNasir196 left a comment

Choose a reason for hiding this comment

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

good find!

Copy link
Collaborator

@itsarghyadas itsarghyadas left a comment

Choose a reason for hiding this comment

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

Good catch. But can you give me a small details about how it affects the performance or what it improves?

@qamarq
Copy link
Author

qamarq commented Sep 29, 2024

Good catch. But can you give me a small details about how it affects the performance or what it improves?

Literally no affect on performance and its fixing bug when u have theme vairbale setted to 'system' (like default). my solution is fixing that and even if u have system colors mode, its giving dark or light.

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.

3 participants