1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-18 22:30:38 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

fix: dead loop

This commit is contained in:
sunnylqm
2024-02-19 11:41:17 +08:00
parent 4923aff184
commit 9c06bac91b

View File

@@ -31,10 +31,8 @@ export const PushyProvider = ({
const [lastError, setLastError] = useState<Error>();
const dismissError = useCallback(() => {
if (lastError) {
setLastError(undefined);
}
}, [lastError]);
setLastError(undefined);
}, []);
const showAlert = useCallback(
(...args: Parameters<typeof Alert.alert>) => {