setHealth
How to use
import { Plugin } from '@root'
Plugin.setHealth(true)example
import { Plugin } from '@root'
import {
    useState,
    useEffect
} from 'react'
const App = () => {
    const [connected, setHealth] = useState(false)
    useEffect(() => {
        if (connected) {
            Plugin.setHealth(true)
        }
    }, [connected])
}Last updated
Was this helpful?
