{"size": 409, "ext": "js", "max_stars_repo_path": "src/pages/rxjs/store.js", "max_stars_repo_name": "GeoDaoyu/TodoList", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/pages/rxjs/store.js", "max_issues_repo_name": "GeoDaoyu/TodoList", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/pages/rxjs/store.js", "max_forks_repo_name": "GeoDaoyu/TodoList", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 25.5625, "max_line_length": 54, "alphanum_fraction": 0.6748166259}
import { BehaviorSubject } from 'rxjs';
import { request } from 'umi';

export const modalVisit$ = new BehaviorSubject(false);
export const type$ = new BehaviorSubject('add');
export const initialValues$ = new BehaviorSubject({});

export const dataSource$ = new BehaviorSubject([]);

export const doQuery = () => {
  request('/api/todos').then(({ data }) => {
    dataSource$.next(data);
  });
};
doQuery();
