apollo-feature-requests
apollo-feature-requests copied to clipboard
Reset pollInterval on refetch
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
Iām personally for having the poll interval reset on refetch! cc @benjamn @hwillson