Services
Services will help you implement common tasks by abstracting their tedious parts. A service will always have the following signature:
ts
interface ServiceProps {
[key:string]: any;
}
interface Service {
add: (key:string, fn: (props:ServiceProps) => void) => void;
remove: (key:string) => void;
has: (key:string) => boolean;
props: () => ServiceProps;
}
useService(...args?):Service;
The following services are available: