Skip to content

Instantly share code, notes, and snippets.

View calebroseland's full-sized avatar

Caleb Roseland calebroseland

View GitHub Profile
import Vue from 'vue'
import {DataStore, Record} from 'js-data'
// define a base class that enables property-level vue reactivity.
export class VueReactiveRecord extends Record {
constructor (...args) {
// among other things, this will apply js-data schema if configured to do so; be sure to do `track: true`
super(...args)