How to use the vlow.Store function in vlow

To help you get started, we’ve selected a few vlow 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 SiriDB / siridb-admin / src / Stores / BaseStore.jsx View on Github external
import React from 'react';
import Vlow from 'vlow';


import JsonRequest from '../Utils/JsonRequest.jsx';


class BaseStore extends Vlow.Store {

    fetch(url) {
        return new JsonRequest('GET', url);
    }

    post(url, data) {
        return new JsonRequest('POST', url, data);
    }

    postraw(url, raw) {
        return new JsonRequest('POST', url, raw, true);
    }
}

export default BaseStore;

vlow

A simple library for unidirectional dataflow architecture inspired by Reflux

MIT
Latest version published 5 months ago

Package Health Score

59 / 100
Full package analysis