import { useQuery } from '@apollo/react-hooks';
      
      const { loading, error, data } = useQuery(GRAPHQL_QUERY, {
        variables: { key: value },
        pollInterval: 500,
      });
      Javascript language logo

      useQuery with polling

      react
      My JavaScript recipes

      Regularly poll the query

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.