Skip to content

Commit d61abf0

Browse files
committed
Realtime by default in make-find-mixin
This disables pagination by default in the make-find-mixin. This means that live queries are turned on by default.
1 parent 921f170 commit d61abf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/make-find-mixin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ export default function makeFindMixin(options) {
9999
const serviceState = this.$store.state[serviceName]
100100

101101
// If both queries are provided, we're not using fall-through pagination.
102-
// User can pass `paginate: false` to force old behavior with a single query.
103102
if (
104103
(this[FETCH_PARAMS] && this[PARAMS]) ||
105-
(this[PARAMS] && this[PARAMS].paginate === false)
104+
(this[PARAMS] && !this[PARAMS].paginate)
106105
) {
107106
return this.$store.getters[`${serviceName}/find`](this[PARAMS]).data
108107
}
109108

109+
// User can pass `paginate: true` to force pagination.
110110
const params = this[PARAMS]
111111
// Check for pagination data for this query.
112112
if (params) {

0 commit comments

Comments
 (0)