From 83c608c5dafe0ba99562a0b9752197518c301de2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krystian=20Droz=CC=87dz=CC=87yn=CC=81ski?= Date: Sat, 1 Jun 2024 11:41:16 +0200 Subject: [PATCH] Fix style sheet default value in Vue --- .changeset/thin-apples-invite.md | 5 +++++ packages/vue/src/sheet.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/thin-apples-invite.md diff --git a/.changeset/thin-apples-invite.md b/.changeset/thin-apples-invite.md new file mode 100644 index 0000000..4682556 --- /dev/null +++ b/.changeset/thin-apples-invite.md @@ -0,0 +1,5 @@ +--- +"@teiler/vue": patch +--- + +Fix style sheet default value diff --git a/packages/vue/src/sheet.ts b/packages/vue/src/sheet.ts index c227367..55d11a4 100644 --- a/packages/vue/src/sheet.ts +++ b/packages/vue/src/sheet.ts @@ -6,7 +6,7 @@ export let styleSheet = null export const StyleSheet = 'STYLE_SHEET' export function getStyleSheet(): Sheet { - const provided = inject('STYLE_SHEET', () => createStyleSheet({}), true) + const provided = inject('STYLE_SHEET', () => null, true) if (provided) { return provided