Skip to content

Commit

Permalink
Merge branch '125-reactinvue-typeerror-cannot-read-properties-of-unde…
Browse files Browse the repository at this point in the history
…fined-reading-unmount'
  • Loading branch information
devilwjp committed Sep 22, 2024
2 parents a3d686b + 37fc032 commit 18391be
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "veaury",
"private": false,
"version": "2.5.0",
"version": "2.5.1",
"description": "Use React in Vue3 and Vue3 in React, And as perfect as possible!",
"main": "dist/veaury.umd.js",
"module": "dist/veaury.esm.js",
Expand Down
2 changes: 1 addition & 1 deletion src/applyReactInVue.js
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ export default function applyReactInVue(component, options = {}) {

// Destroy the React root node
if (ReactMajorVersion > 17) {
this.__veauryReactApp__.unmount()
this.__veauryReactApp__?.unmount()
} else {
ReactDOM.unmountComponentAtNode(this.$refs.react)
}
Expand Down
3 changes: 3 additions & 0 deletions src/pureReactInVue/getChildInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,8 @@ export default function getChildInfo(child, index, vueInReactCall, defaultSlotsF
// props.node = () => reactNode
// }

// remove ref_for
if (typeof props.ref_for === "boolean") delete props.ref_for

return props
}

0 comments on commit 18391be

Please sign in to comment.