How to use the @reshadow/core.set function in @reshadow/core

To help you get started, we’ve selected a few @reshadow/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 lttb / reshadow / packages / runtime / index.js View on Github external
function taggedStyled() {
        const strs = arguments[0];
        if (!isTemplateLiteral(strs)) {
            return styled.apply(null, arguments);
        }

        const tokens = processCSS.apply(null, arguments);

        if (styles) {
            styled();
        }

        set([styles, tokens]);

        return styled;
    }
github lttb / reshadow / packages / runtime / index.js View on Github external
function carriedStyled() {
        const strs = arguments[0];
        styles = null;
        if (!isTemplateLiteral(strs)) {
            styles = create(Array.prototype.slice.call(arguments));
            set([styles]);
            return taggedStyled;
        }

        return taggedStyled.apply(null, arguments);
    }