Skip to content

Instantly share code, notes, and snippets.

View mydea's full-sized avatar

Francesco Novy mydea

View GitHub Profile
import Component from "@glimmer/component";
import { tracked } from "@glimmer/tracking";
import { action } from "@ember/object";
export default class extends Component {
@tracked chartData;
constructor() {
super(...arguments);
this.updateChartData();
import JSONAPIAdapter from 'ember-data/adapters/json-api';
import AdapterFetch from 'ember-fetch/mixins/adapter-fetch';
export default JSONAPIAdapter.extend(AdapterFetch, {
ajax() {
let promise = this._super(...arguments);
promise.finally(() => console.log('done'));