Files
MajoorWaldi-ComfyUI-Majoor-…/js/stores/getOptionalPanelStore.js
T
MajoorWaldi 2fa41a0e76 feat: add useGridState and useVirtualGrid composables for asset management
- Implemented useGridState to manage grid state, including asset selection and loading states.
- Created useVirtualGrid to centralize virtualization helpers for improved performance.
- Added createVueApp for isolated Vue 3 + Pinia application instances.
- Introduced Vite configuration for building the ComfyUI-Majoor-AssetsManager with external dependencies.
2026-04-03 11:04:55 +02:00

12 lines
264 B
JavaScript

import { getActivePinia } from "pinia";
import { usePanelStore } from "./usePanelStore.js";
export function getOptionalPanelStore() {
try {
if (!getActivePinia()) return null;
return usePanelStore();
} catch {
return null;
}
}