How to use the incremental-dom.attributes.__stores function in incremental-dom

To help you get started, we’ve selected a few incremental-dom 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 tailhook / khufu / khufu-runtime / src / index.js View on Github external
function set_global_state(params) {
    var old = {
        stores: attributes.__stores,
        applyAttr: attributes[symbols.default],
        deleted: notifications.nodesDeleted,
    }
    attributes.__stores = store_handler(params)
    attributes[symbols.default] = applyAttribute
    notifications.nodesDeleted = cleanup_stores
    return old
}
github tailhook / khufu / khufu-runtime / src / index.js View on Github external
function clean_global_state(old) {
    notifications.nodesDeleted = old.deleted
    attributes[symbols.default] = old.applyAttr
    attributes.__stores = old.stores
}