New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot refetch a query that has not been started yet #4375
Comments
We still don't have a reproduction on this. My take is that you somehow save a reference to the |
I notice one common thing with #2889. We are using lodash debounce library with refetch. Here is the example of how we use it. import React from "react";
import { View } from "react-native";
import debounce from "lodash/debounce";
import { Button, Typography } from "./core";
const runDebouncedRetry = debounce((func: () => void) => func(), 1000, {
leading: true,
});
export default function ErrorDataLoad({
retry,
message,
debounceEnabled = true,
isRefreshing,
}) {
return (
<View style={{ flex: 1 }}>
<View style={{ flex: 1, alignItems: "center", justifyContent: "center" }}>
<View style={{ marginTop: 30 }}>
<Typography variant="accent24">Ups. something happend</Typography>
</View>
<View style={{ marginTop: 22 }}>
<Typography variant="regular14" color="n700">
{message}
</Typography>
</View>
</View>
<View style={{ paddingHorizontal: 20 }}>
<Button
loading={isRefreshing}
label={"Retry"}
type="Main"
onPress={() => {
if (debounceEnabled) {
return runDebouncedRetry(retry);
}
return retry();
}}
/>
</View>
</View>
);
} |
In case this helps someone, we had a situation where we would conditionally supply |
@kristiandupont that's very surprising - we made no changes to any of this behavior in v2 |
Hm, interesting! I guess that means that I need to double-check that some other behavior isn't broken! |
We have some crashes reported in our app with the message "Cannot refetch a query that has not been started yet.". We see the crashed in Firebase Crashlytics. I could not repeat the the crash myself. I searched here the issues with the same problem, but could not find a possible solution . The closest related issue seems to be #2889
Here is the crash stats for Android (we have the same and for iOS)
Here is the screen code example we have:
Example Screen 1
Example Screen 2
The text was updated successfully, but these errors were encountered: