lumilio-web / contexts/WorkerProvider / useWorker
Function: useWorker()
useWorker():
AppWorkerClient
Defined in: contexts/WorkerProvider.tsx:14
Custom hook to safely access the AppWorkerClient instance from the context. It ensures that the hook is used within a component wrapped by WorkerProvider.
Returns
The shared instance of the worker client.
Throws
If the hook is used outside of a WorkerProvider.