Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
React.useEffect(() => {
const { connect, disconnect } = startLoadingPilets(options);
const notifier: PiletsLoading = (error, pilets, loaded) => {
initialize(!loaded, error, pilets);
};
connect(notifier);
return () => disconnect(notifier);
}, []);
// tslint:disable-next-line:no-null-keyword