import { Injectable } from '@angular/core';
import { Subject } from 'rxjs';

@Injectable()
export class BixiTableService {
  updateView$ = new Subject<string>();

  /**
   * @deprecated we will remove it in 10.0
   */
  updateView(tableId: string = '') {
    this.updateView$.next(tableId);
  }

  forceUpdate(tableId: string = '') {
    this.updateView$.next(tableId);
  }
}
