Skip to content

Commit

Permalink
bug: maintain inject/provide context
Browse files Browse the repository at this point in the history
  • Loading branch information
mathuo committed Aug 1, 2024
1 parent e5e9603 commit 7da51cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/dockview-vue/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ export function mountVueComponent<T extends Record<string, any>>(
let vNode = createVNode(component, Object.freeze(props));

vNode.appContext = parent.appContext;
vNode.appContext.provides = {
...(vNode.appContext.provides ? vNode.appContext.provides : {}),
...((parent as any).provides ? (parent as any).provides : {}),
};

render(vNode, element);

Expand Down

0 comments on commit 7da51cc

Please sign in to comment.