1
0
Code Issues Pull Requests 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
No known key found for this signature in database

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>) => {