Skip to content

WorkerComponentConstructorParams.fallbackHandlers?

WorkerComponentConstructorParams › fallbackHandlers?

Type: WorkerApiHandlers<TApi>

The same handlers the worker exposes, run on the main thread when no Worker can be created. Without them, a failure to create the worker fails the component's load.