mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Make toolsById a shallowRef
A given tool never changes attributes (currently), so no need to track reactivity for the whole object.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
import axios from "axios";
|
||||
import { defineStore } from "pinia";
|
||||
import Vue, { computed, Ref, ref } from "vue";
|
||||
import Vue, { computed, Ref, ref, shallowRef } from "vue";
|
||||
|
||||
import { createWhooshQuery, filterTools, types_to_icons } from "@/components/Panels/utilities";
|
||||
import { useUserLocalStorage } from "@/composables/userLocalStorage";
|
||||
@@ -75,7 +75,7 @@ export interface PanelView {
|
||||
export const useToolStore = defineStore("toolStore", () => {
|
||||
const currentPanelView: Ref<string> = useUserLocalStorage("tool-store-view", "");
|
||||
const defaultPanelView: Ref<string> = ref("");
|
||||
const toolsById = ref<Record<string, Tool>>({});
|
||||
const toolsById = shallowRef<Record<string, Tool>>({});
|
||||
const toolResults = ref<Record<string, string[]>>({});
|
||||
const panel = ref<Record<string, Record<string, Tool | ToolSection>>>({});
|
||||
const panelViews = ref<Record<string, PanelView>>({});
|
||||
|
||||
Reference in New Issue
Block a user