- 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.
12 lines
264 B
JavaScript
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;
|
|
}
|
|
}
|