plane/web/store/application/router.store.ts
sriram veeraghanta 2068f54f1d fix: store changes
2023-12-11 20:15:07 +05:30

22 lines
371 B
TypeScript

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;
}
}