The life cycle of the taro applet

ceTaro Documentation

You can refer to this document.

Vue3 Composition APIs

use

useLoad (equivalent to the page's onLoadlifecycle 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'))

Guess you like

Origin blog.csdn.net/qq_33769914/article/details/130343527