Skip to content

Commit

Permalink
rm useless routeContext value wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyuki committed Oct 11, 2024
1 parent 6e6e0a2 commit 6594ff9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ const triggerResizeEvent = (mpxProxy) => {
}

function usePageContext (mpxProxy, instance) {
const { pageId } = useContext(routeContext) || {}
const pageId = useContext(routeContext)

instance.getPageId = () => {
return pageId
Expand Down Expand Up @@ -447,7 +447,7 @@ export function getDefaultOptions ({ type, rawOptions = {}, currentInject }) {
null,
createElement(routeContext.Provider,
{
value: { pageId: currentPageId }
value: currentPageId
},
createElement(defaultOptions,
{
Expand Down

0 comments on commit 6594ff9

Please sign in to comment.