How to use the miniprogram-render.destroyPage function in miniprogram-render

To help you get started, we’ve selected a few miniprogram-render examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Tencent / omi / packages / omis-kbone / build / mp / pages / index / index.js View on Github external
onUnload() {
        this.window.$$trigger('beforeunload')
        this.app && this.app.$destroy && this.app.$destroy()
        this.document.body.$$recycle() // 回收 dom 节点

        mp.destroyPage(this.pageId)
        global.$$runtime = null

        this.pageConfig = null
        this.pageId = null
        this.window = null
        this.document = null
        this.app = null
        this.query = null
    },
    onShareAppMessage(data) {
github Tencent / omi / packages / preact-kbone / build / mp / pages / index / index.js View on Github external
onUnload() {
        this.window.$$trigger('beforeunload')
        this.window.$$trigger('wxunload')
        if (this.app && this.app.$destroy) this.app.$destroy()
        this.document.body.$$recycle() // 回收 dom 节点

        mp.destroyPage(this.pageId)
        global.$$runtime = null

        this.pageConfig = null
        this.pageId = null
        this.window.getTabBar = null
        this.window = null
        this.document = null
        this.app = null
        this.query = null
    },
    onShareAppMessage(data) {
github Tencent / omi / packages / omi-kbone / build / mp / pages / log / index.js View on Github external
onUnload() {
        this.window.$$trigger('beforeunload')
        this.window.$$trigger('wxunload')
        if (this.app && this.app.$destroy) this.app.$destroy()
        this.document.body.$$recycle() // 回收 dom 节点

        mp.destroyPage(this.pageId)
        global.$$runtime = null

        this.pageConfig = null
        this.pageId = null
        this.window = null
        this.document = null
        this.app = null
        this.query = null
    },
    onShareAppMessage(data) {
github Tencent / omi / packages / omi-kbone / build / mp / pages / index / index.js View on Github external
onUnload() {
        this.window.$$trigger('beforeunload')
        this.window.$$trigger('wxunload')
        if (this.app && this.app.$destroy) this.app.$destroy()
        this.document.body.$$recycle() // 回收 dom 节点

        mp.destroyPage(this.pageId)
        global.$$runtime = null

        this.pageConfig = null
        this.pageId = null
        this.window = null
        this.document = null
        this.app = null
        this.query = null
    },
    onShareAppMessage(data) {
github Tencent / omi / packages / templates-old / mp-webpack-plugin2 / src / tmpl / page.tmpl.js View on Github external
onUnload() {
        this.window.$$trigger('beforeunload')
        this.app && this.app.$destroy && this.app.$destroy()
        this.document.body.$$recycle() // 回收 dom 节点

        mp.destroyPage(this.pageId)
        global.$$runtime = null

        this.pageConfig = null
        this.pageId = null
        this.window = null
        this.document = null
        this.app = null
        this.query = null
    },
    onShareAppMessage(data) {
github Tencent / omi / packages / preact-kbone / build / mp / pages / log / index.js View on Github external
onUnload() {
        this.window.$$trigger('beforeunload')
        this.window.$$trigger('wxunload')
        if (this.app && this.app.$destroy) this.app.$destroy()
        this.document.body.$$recycle() // 回收 dom 节点

        mp.destroyPage(this.pageId)
        global.$$runtime = null

        this.pageConfig = null
        this.pageId = null
        this.window.getTabBar = null
        this.window = null
        this.document = null
        this.app = null
        this.query = null
    },
    onShareAppMessage(data) {
github wechat-miniprogram / kbone / packages / mp-webpack-plugin / src / tmpl / page.tmpl.js View on Github external
onUnload() {
        this.window.$$trigger('beforeunload')
        this.window.$$trigger('wxunload')
        if (this.app && this.app.$destroy) this.app.$destroy()
        this.document.body.$$recycle() // 回收 dom 节点

        mp.destroyPage(this.pageId)
        global.$$runtime = null

        this.pageConfig = null
        this.pageId = null
        this.window.getTabBar = null
        this.window = null
        this.document = null
        this.app = null
        this.query = null
    },
    onShareAppMessage(data) {

miniprogram-render

web's adapter for miniprogram

MIT
Latest version published 4 months ago

Package Health Score

71 / 100
Full package analysis

Similar packages