Skip to content

Commit 81179de

Browse files
committed
Wrap composable in createSharedComposable
1 parent bd5155c commit 81179de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/composables/useSettings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export function useCodeContainer() {
257257
}
258258
}
259259

260-
export function useCodeLigatures() {
260+
export const useCodeLigatures = createSharedComposable(function useCodeLigatures() {
261261
const { settings } = useSettings()
262262

263263
const codeLigatures = computed(() => settings.value.codeLigatures)
@@ -285,4 +285,4 @@ export function useCodeLigatures() {
285285
codeLigatures,
286286
toggleCodeLigatures,
287287
}
288-
}
288+
})

0 commit comments

Comments
 (0)