This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |