UNPKG

@choerodon/master

Version:
39 lines 1.23 kB
import { useLocalStore } from 'mobx-react-lite'; export default function useStore(history) { return useLocalStore(function () { return { cacheDocData: {}, setCacheDocData: function setCacheDocData(value) { this.cacheDocData = value; }, todoThingsData: {}, setTodoThingsData: function setTodoThingsData(value) { this.todoThingsData = value; }, todoQuestions: {}, setTodoQuestions: function setTodoQuestions(value) { this.todoQuestions = value; }, focusQuestions: {}, setFocusQuestions: function setFocusQuestions(value) { this.focusQuestions = value; }, bugQuestions: {}, setBugQuestions: function setBugQuestions(value) { this.bugQuestions = value; }, reportQuestions: {}, setReportQuestions: function setReportQuestions(value) { this.reportQuestions = value; }, myExecutionQuestions: {}, setMyExecutionQuestions: function setMyExecutionQuestions(value) { this.myExecutionQuestions = value; }, myHandlerIssues: {}, setMyHandlerIssues: function setMyHandlerIssues(value) { this.myHandlerIssues = value; } }; }); }