How to use the aurelia-store.dispatchify function in aurelia-store

To help you get started, we’ve selected a few aurelia-store 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 Vheissu / builtwithaurelia / src / routes / home.ts View on Github external
async canActivate(params) {
        await dispatchify(getCategories)();
        await dispatchify(loadProjects)();

        // this.taskQueue.queueMicroTask(() => {
        //     console.log(this.state);
        // });
    }
github Vheissu / builtwithaurelia / src / routes / home.ts View on Github external
async canActivate(params) {
        await dispatchify(getCategories)();
        await dispatchify(loadProjects)();

        // this.taskQueue.queueMicroTask(() => {
        //     console.log(this.state);
        // });
    }
github Vheissu / builtwithaurelia / src / routes / home.ts View on Github external
filterCategory(category) {
        dispatchify(setCategory)(category);

        if (!this.state.backupProjects.length) {
            // Backup the existing projects
            dispatchify(backupProjects)();
        }

        dispatchify(sortCategories)(category);
    }
github Vheissu / builtwithaurelia / src / routes / home.ts View on Github external
filterCategory(category) {
        dispatchify(setCategory)(category);

        if (!this.state.backupProjects.length) {
            // Backup the existing projects
            dispatchify(backupProjects)();
        }

        dispatchify(sortCategories)(category);
    }
github Vheissu / builtwithaurelia / src / routes / home.ts View on Github external
filterCategory(category) {
        dispatchify(setCategory)(category);

        if (!this.state.backupProjects.length) {
            // Backup the existing projects
            dispatchify(backupProjects)();
        }

        dispatchify(sortCategories)(category);
    }
github Vheissu / builtwithaurelia / src / routes / home.ts View on Github external
vote(evt, name) {
        if (this.userService.isLoggedIn) {
            dispatchify(castVote)(name);
        } else {
            this.ea.publish('show.login-form');
        }
    }
}
github Vheissu / builtwithaurelia / src / routes / home.ts View on Github external
sortByPopular() {
        dispatchify(sortProjects)('popular');
    }
github Vheissu / builtwithaurelia / src / routes / home.ts View on Github external
sortByNewlyAdded() {
        dispatchify(sortProjects)('new');
    }

aurelia-store

Aurelia single state store based on RxJS

MIT
Latest version published 2 years ago

Package Health Score

57 / 100
Full package analysis