A hook for hardware devices.
The devices state.
const { devices, isLoaded, error } = useDevicesState();if (!isLoaded) return <Loading />;if (error) return <ErrorView error={error} />;// devices value is now safe to use Copy
const { devices, isLoaded, error } = useDevicesState();if (!isLoaded) return <Loading />;if (error) return <ErrorView error={error} />;// devices value is now safe to use
A hook for hardware devices.