From a6e365d432ff0b49d30cd89d3e1aa96ffa860e69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Mon, 15 May 2023 12:50:24 +0300 Subject: [PATCH] unwrapInjectedRef warning fix --- components/lib/dialogservice/DialogService.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/lib/dialogservice/DialogService.js b/components/lib/dialogservice/DialogService.js index 21a84f47c..5d328159a 100644 --- a/components/lib/dialogservice/DialogService.js +++ b/components/lib/dialogservice/DialogService.js @@ -1,6 +1,6 @@ -import { markRaw } from 'vue'; -import { PrimeVueDialogSymbol } from 'primevue/usedialog'; import DynamicDialogEventBus from 'primevue/dynamicdialogeventbus'; +import { PrimeVueDialogSymbol } from 'primevue/usedialog'; +import { markRaw } from 'vue'; export default { install: (app) => { @@ -21,7 +21,7 @@ export default { } }; - app.config.unwrapInjectedRef = true; // Remove it after Vue 3.3. Details: https://vuejs.org/guide/components/provide-inject.html#working-with-reactivity + // app.config.unwrapInjectedRef = true; // Remove it after Vue 3.3. Details: https://vuejs.org/guide/components/provide-inject.html#working-with-reactivity app.config.globalProperties.$dialog = DialogService; app.provide(PrimeVueDialogSymbol, DialogService); }