From cf06f1cc38e6b4b6a9211e3ce6fcfee13e259fda Mon Sep 17 00:00:00 2001 From: Chris Calo Date: Sun, 5 Jan 2020 17:57:10 -0500 Subject: [PATCH] docs(smart-query): document `pollInterval` usage Show both static value usage and reactive prop usage. --- packages/docs/src/api/smart-query.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/docs/src/api/smart-query.md b/packages/docs/src/api/smart-query.md index 0e25f122..281b2fe0 100644 --- a/packages/docs/src/api/smart-query.md +++ b/packages/docs/src/api/smart-query.md @@ -39,6 +39,12 @@ apollo: { message: this.pingInput, } }, + // Polling interval in milliseconds + pollInterval: 10000, + // Or, set polling interval as a vue reactive property + pollInterval() { + return this.pollInterval; + }, // Variables: deep object watch deep: false, // We use a custom update callback because