Skip to content

Commit 4d7c460

Browse files
committed
feat: Ignore queries warmup on PouchLink
With previous changes, we now expect the CozyPouchLink to be the last link of the chain, so forwarding the query would result to an exception thrown This mean we cannot forward the query when warmup queries are not finished yet So we want to allow CozyPouchLink to ignore the verification step and process the query independently of the warmup queries status To allow this we introduce the `ignoreWarmup` parameter. When set to `true` the CozyPouchLink will process the query even if warmup is not finished yet Related PR: cozy/cozy-client#1506
1 parent dc753f9 commit 4d7c460

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pouchdb/getLinks.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ export const getLinks = (): CozyLink[] => {
2929
const pouchLinkOptions = {
3030
doctypes: offlineDoctypes,
3131
initialSync: true,
32-
platform: platformReactNative
32+
platform: platformReactNative,
33+
ignoreWarmup: true
3334
}
3435

3536
const stackLink = new StackLink({

0 commit comments

Comments
 (0)