[bugfix/Refactor]

Fix plugin compatibility list that was showed incorrectly.
Change init function.
This commit is contained in:
Sakamoto Shiina
2025-04-19 16:15:47 +09:00
parent 7bcbefaf06
commit cd63e2e3ca
9 changed files with 85 additions and 41 deletions

View File

@@ -1,11 +1,20 @@
import React from "react";
import { useEffect, useRef } from "react";
import { usePlugins } from "@logics_configs";
import styles from "./Plugins.module.scss";
import { PluginsControlComponent } from "../_components/plugins_control_component/PluginsControlComponent";
export const Plugins = () => {
const {
asyncFetchPluginsInfo,
} = usePlugins();
const hasRunRef = useRef(false);
useEffect(() => {
if (!hasRunRef.current) {
asyncFetchPluginsInfo();
}
return () => hasRunRef.current = true;
}, []);
return (
<div className={styles.container}>