How to use @wxa/core - 3 common examples

To help you get started, we’ve selected a few @wxa/core 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 wxajs / wxa / packages / wxa-redux / src / index.js View on Github external
return function (...args) {
        this.$$reduxDiff = diff.bind(this);
        if(this.$store) {
            let connectState = ()=>{
                let newState = this.$store.getState();
                let lastState = this.$$storeLastState;
                let data = mapState(this.mapState, newState, lastState, this);

                if (data !== null) {
                    // 有效state
                    this.$$storeLastState = data;
                    let diffData = this.$$reduxDiff(data);
                    this.setData(diffData);
                }
            }
            this.$unsubscribe = this.$store.subscribe((...args) => {
                // Object updated && page is showing
                if(this.$$isCurrentPage) {
github wxajs / wxa / packages / wxa-cli / lib-dist / wxa_wrap.js View on Github external
set: function set(x) {
            this.$value = x;

            if (x == null) return;

            _core.wxa.launch(type, x, path);
        }
    });
github wxajs / wxa / packages / wxa-cli / lib / wxa_wrap.js View on Github external
set(x) {
            this.$value = x;

            if (x == null) return;

            wxa.launch(type, x, path);
        },
    });

@wxa/core

wxa core feature

MIT
Latest version published 4 months ago

Package Health Score

66 / 100
Full package analysis

Similar packages