Skip to content

Commit a569fb9

Browse files
authored
docs(smart-query): document pollInterval usage (#902)
Show both static value usage and reactive prop usage.
1 parent 52276c7 commit a569fb9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/docs/src/api/smart-query.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ apollo: {
3939
message: this.pingInput,
4040
}
4141
},
42+
// Polling interval in milliseconds
43+
pollInterval: 10000,
44+
// Or, set polling interval as a vue reactive property
45+
pollInterval() {
46+
return this.pollInterval;
47+
},
4248
// Variables: deep object watch
4349
deep: false,
4450
// We use a custom update callback because

0 commit comments

Comments
 (0)