Skip to content

Commit

Permalink
fix(theme): prevent production memory leak with ssr
Browse files Browse the repository at this point in the history
fixes #16156
  • Loading branch information
KaelWD committed Jul 10, 2023
1 parent 0f0464c commit d2bdc7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vuetify/src/composables/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
computed,
inject,
provide,
reactive,
ref,
watch,
watchEffect,
Expand Down Expand Up @@ -201,7 +200,7 @@ function parseThemeOptions (options: ThemeOptions = defaultThemeOptions): Intern

// Composables
export function createTheme (options?: ThemeOptions): ThemeInstance & { install: (app: App) => void } {
const parsedOptions = reactive(parseThemeOptions(options))
const parsedOptions = parseThemeOptions(options)
const name = ref(parsedOptions.defaultTheme)
const themes = ref(parsedOptions.themes)

Expand Down

0 comments on commit d2bdc7f

Please sign in to comment.