unwrapInjectedRef warning fix

pull/3970/head
Tuğçe Küçükoğlu 2023-05-15 12:50:24 +03:00
parent 790126cee0
commit a6e365d432
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
import { markRaw } from 'vue';
import { PrimeVueDialogSymbol } from 'primevue/usedialog';
import DynamicDialogEventBus from 'primevue/dynamicdialogeventbus'; import DynamicDialogEventBus from 'primevue/dynamicdialogeventbus';
import { PrimeVueDialogSymbol } from 'primevue/usedialog';
import { markRaw } from 'vue';
export default { export default {
install: (app) => { 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.config.globalProperties.$dialog = DialogService;
app.provide(PrimeVueDialogSymbol, DialogService); app.provide(PrimeVueDialogSymbol, DialogService);
} }