[Update/Refactor] Fetch and show the plugins info list.
Refactor some functions. Try to fetch functions from github api just once when vrct started.(It used to every time plugin tab has opened so easy to reach to the api limit)
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
// PluginHost.jsx
|
||||
import React from "react";
|
||||
import { useStore_LoadedPluginsList } from "@store";
|
||||
import { usePlugins } from "@logics_configs";
|
||||
|
||||
// export const PluginHost = ({ location }) => {
|
||||
export const PluginHost = () => {
|
||||
const { currentLoadedPluginsList } = useStore_LoadedPluginsList();
|
||||
const { currentLoadedPluginsList } = usePlugins();
|
||||
console.log(currentLoadedPluginsList.data);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user