Skip to content

Commit

Permalink
fix: 修复solid的onShow,onHide不生效的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
phy-lei committed Sep 21, 2024
1 parent eefb302 commit f524eb4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/taro-framework-solid/src/runtime/connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ type SolidComponent = (props?: any) => TaroNode;

export function setReconciler () {
hooks.tap('getLifecycle', function (instance, lifecycle: string) {
lifecycle = lifecycle.replace(/^on(Show|Hide)$/, 'componentDid$1')
return instance[lifecycle]
})

Expand Down

0 comments on commit f524eb4

Please sign in to comment.