You can refer to this document.
Vue3 Composition APIs
use
useLoad (equivalent to the page's onLoad
lifecycle hook.)
useReady(onReady)
useDidShow(onShow)
useDidHide( onHide
)
useUnload(onUnload
)
usePullDownRefresh(onPullDownRefresh
)
useReachBottom(onReachBottom
)
Note that when using it, first introduce
import { useDidShow } from '@tarojs/taro'
useDidShow(() => console.log('onShow'))