MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / useInstallation

Function useInstallation

src/hooks/useInstallation.js:4–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { InstallationContext } from '../components/context/InstallationContext/InstallationContext';
3
4export const useInstallation = () => {
5 const ctx = useContext(InstallationContext);
6 if (!ctx) throw new Error('useInstallation must be used within InstallationProvider');
7 return ctx;
8};

Callers 2

QuickStartFunction · 0.90
CliInstallationFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected