You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const [isFoo, setFoo] = useState(false);
const [result, executeQuery] = useQuery({
query: `{
event {
id
display_name
door_date
end_date
is_recommended
venue {
display_name
id
coords
summary
address1
city
state
}
}
}`,
});
const { data, fetching } = result;
// without this faux-setState, the component never re-renders and fetching stays true
useEffect(() => {
setTimeout(() => setFoo(true), 1500);
});
If I remove the setFoo, the component never re-renders and just hangs on fetching: true. Happy to provide any info -- I'm new to React Native, but not React so there's definitely a possibility I'm doing something wrong. But this is about as simple an example I can implement.
I looked into a few issues, such as #287 but I'm running 1.2.0 so I don't think that's the same problem.
Cheers, looking forward to using this library more. Let me know if I can share any thing else.
Could this be related -- seems like that hasn't been deployed yet? #358
The text was updated successfully, but these errors were encountered:
Yes, the issue you’re linking to is related and has been reported by @kelset via other channels 👌
The bug should be fixed once we release the next patch version, which should go out on Monday 🙌 (there's a prerelease under the next tag for now if you need the fix urgently)
Okay cool, no rush on my end just wanted to let y'all know. Are there other official channels like a chatroom? I tried to find an irc channel or discord to ask first, but didn't come across one.
Here are my packages:
Setup:
And my component render:
If I remove the
setFoo
, the component never re-renders and just hangs onfetching: true
. Happy to provide any info -- I'm new to React Native, but not React so there's definitely a possibility I'm doing something wrong. But this is about as simple an example I can implement.I looked into a few issues, such as #287 but I'm running 1.2.0 so I don't think that's the same problem.
Cheers, looking forward to using this library more. Let me know if I can share any thing else.
Could this be related -- seems like that hasn't been deployed yet? #358
The text was updated successfully, but these errors were encountered: