Add polling back.

This commit is contained in:
Patrick Fic
2021-12-09 18:13:56 -08:00
parent 53af7a916c
commit 74b9eb40b1
3 changed files with 3 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ export function ChatPopupComponent({
const { t } = useTranslation();
const [pollInterval, setpollInterval] = useState(0);
const { loading, data, refetch, called } = useQuery(CONVERSATION_LIST_QUERY, {
// ...(pollInterval > 0 ? { pollInterval } : {}),
...(pollInterval > 0 ? { pollInterval } : {}),
});
const fcmToken = sessionStorage.getItem("fcmtoken");

View File

@@ -22,7 +22,7 @@ const mapStateToProps = createStructuredSelector({
});
export function ProductionBoardKanbanContainer({ bodyshop, currentUser }) {
const { refetch, loading, data } = useQuery(QUERY_JOBS_IN_PRODUCTION, {
//pollInterval: 3600000,
pollInterval: 3600000,
});
const client = useApolloClient();
const [joblist, setJoblist] = useState([]);

View File

@@ -11,7 +11,7 @@ import _ from "lodash";
export default function ProductionListTableContainer() {
const { refetch, loading, data } = useQuery(QUERY_JOBS_IN_PRODUCTION, {
//pollInterval: 3600000,
pollInterval: 3600000,
});
const client = useApolloClient();
const [joblist, setJoblist] = useState([]);