-
-
Notifications
You must be signed in to change notification settings - Fork 174
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I'm migrating my code to to use the new useModal composable, and for my custom modals, I'm getting this warning on the console whenever I create one.
const { create } = useModal();
create({ component: FeedbackModal }).show();Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.
Component that was made reactive:
Object { __name: "FeedbackModal", ...
I've tried using markRaw on the imported component , but it made no difference. I see in the source that it should already be applying markRaw to the component instance, so I'm not sure why this is happening.
Reproduction
Used Package Manager
npm
gtbuchananCopilot
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working