apollo-feature-requests icon indicating copy to clipboard operation
apollo-feature-requests copied to clipboard

Reset pollInterval on refetch

Open gtb104 opened this issue 3 years ago ā€¢ 1 comments

The pollInterval feature is a nice way of periodically retrieving fresh data from the server. In our application, we take advantage of the refetch() function to force a refresh of data given a user interaction. For our use case, and maybe others, it would be nice for the refetch to reset the pollInterval timer.

I think this behavior would be the most desirable use case, but I'm sure there could be times when that's not the case, so perhaps a new boolean property could be used to control this behavior.

This feature request is related to my question on the community support forum.

cc @brainkim

gtb104 avatar Sep 22 '21 12:09 gtb104

Iā€™m personally for having the poll interval reset on refetch! cc @benjamn @hwillson

brainkim avatar Sep 22 '21 16:09 brainkim