Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Caleb Roseland calebroseland

🏠
Working from home
View GitHub Profile
View vue-js-data-reactivity.js
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)
You can’t perform that action at this time.