-
-
Notifications
You must be signed in to change notification settings - Fork 522
Open
Labels
Description
In @vue/apollo-composable, the following code won’t work as expected:
const { result: episodesResult, fetchMore: fetchMoreEpisodes, loading: episodesLoading, onResult: onEpisodesResult, startPolling, stopPolling, } = useQuery(
GetEpisodesDocument,
episodesVariables,
{ pollInterval: 500 }
)Why:
startPollingandstopPollingdo not exist in@vue/apollo-composable— they are only in Apollo Client for React.pollIntervalis read only once when the query is created. Changing it later won’t start or stop polling.
Are there any built-in options or recommended patterns in @vue/apollo-composable to switch polling on and off without manually managing timers?
anna-visarsoft