plane/web/store/application/router.store.ts

22 lines
371 B
TypeScript
Raw Normal View History

2023-12-11 14:45:07 +00:00
import { action, makeObservable, observable } from "mobx";
export interface IRouterStore {
query: any;
setQuery: (query: any) => void;
}
export class RouterStore implements IRouterStore {
query = {};
constructor() {
makeObservable(this, {
query: observable,
setQuery: action,
});
}
setQuery(query: any) {
this.query = query;
}
}