Skip to content

Commit

Permalink
fix: app context
Browse files Browse the repository at this point in the history
  • Loading branch information
caohuilin committed Nov 25, 2024
1 parent 73759db commit 6427f5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/solutions/app-tools/src/new/compat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export const compatPlugin = (): Plugin<
};
return {
useAppContext: () => {
return getAppContext();
const { _internalContext, ...appContext } = getAppContext();
return appContext;
},
setAppContext: context => {
return updateAppContext(context);
Expand Down

0 comments on commit 6427f5c

Please sign in to comment.