-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
data classes aren't working in vue3 + daisyUI #14
Comments
I had symptoms similar to this. |
@Cardroid can you describe how you fixed the issue? |
I made a compromise. |
I have the same issues. I don't think using theme-change in the App.vue is a good choice. Although, I have multiple layouts in the app, so using this method is really hard to manage my app. I am still looking for a solution for this too. |
let me know if u figure something out. |
I got a solution here:
this function is to prevent calling the default theme when reloading the page. Create a component: something.vue
Then call this component anywhere you want to make it your theme mode. This is just unplugin-icon I hope this will help. |
What I tried
While testing it did work once and I saw the local storage write the changed theme value, but after a cache clear it didn't work at all.
I am using vue 3 composition api. I might be able to get it to work manually setting local storage values but I wanted to understand. why this isn't working.
What isn't working
Selecting from the dropdown isn't doing anything.
Also typescript is throwing errors for the missing type declarations
Some relevant code
you can see the full project here
my
navbar.vue
The text was updated successfully, but these errors were encountered: