docs(dynamic-links): resolving "Type 'Function' provides no match for the signature '(): void | undefined'.ts(2345)". (#2945)

This commit is contained in:
sirajalam049
2019-12-08 04:58:11 +05:30
committed by Mike Diarmid
parent 9823d840d0
commit 09559bdb6a

View File

@@ -63,7 +63,7 @@ function App() {
useEffect(() => {
const unsubscribe = firebase.dynamicLinks().onLink(handleDynamicLink);
// When the component unmounts, remove the listener
return unsubscribe;
return () => unsubscribe();
}, []);
return <YourApp />;