Skip to content
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

Add interval of 10 seconds to refetch SessionActivities query manually when subscription fails #54

Merged
merged 2 commits into from
Dec 15, 2022

Conversation

mohsinht
Copy link
Contributor

@mohsinht mohsinht commented Dec 14, 2022

I tried to add pollInterval and even added startPolling to manually start polling for graphql query but I wasn't able to test it. The query wasn't called again. I also tried disabling strictReact in nextjs but that didn't help either.

So I implemented a manual setInterval function that refetches the graphql query after every 10 seconds and clears the interval when component/hook gets unmounted.

This temporarily fixes the issue.

…ities query manually when subscription fails
@vercel
Copy link

vercel bot commented Dec 14, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
hosted-pages ✅ Ready (Inspect) Visit Preview Dec 14, 2022 at 6:48PM (UTC)

@nckhell nckhell merged commit 495c3fc into main Dec 15, 2022
@nckhell nckhell deleted the AST-4537_add_polling_delay_in_session_activities_query branch January 25, 2023 20:24
FlavioF pushed a commit that referenced this pull request Jul 12, 2023
…select_inputs

feat(select): implement filtering on select in wizard form
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants