@wq/store

Locally-persistent, optionally server-populated JSON datastore(s)

Usage no npm install needed!

<script type="module">
  import wqStore from 'https://cdn.skypack.dev/@wq/store';
</script>

README

@wq/store

@wq/store is a wq.app module providing a persistent storage API for retrieving and querying JSON data from a web service via AJAX. @wq/store is used internally by @wq/app to store model data (via @wq/model) and application configuration. @wq/store relies extensively on Redux to manage state, with Redux Persist and localForage to handle the work of storing data offline in IndexedDB.

@wq/store is almost always used in conjunction with @wq/outbox to sync local changes (i.e., form submissions) back to the server.

Documentation

InstallationAPIQuery ObjectsConfigurationPluginsMethods