-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathclient.js
More file actions
15 lines (13 loc) · 681 Bytes
/
client.js
File metadata and controls
15 lines (13 loc) · 681 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import './lib/users';
import './lib/load';
import './lib/ddp';
import './lib/subscribe';
import { isSyncing } from './lib/sync';
import { Offline } from './lib/config';
import { queueMethod, clearAll } from './lib/idb';
const originalDebug = Meteor._debug;
Meteor._debug = function (m, s) {
if (isSyncing() && s?.message.includes('MinimongoError: Duplicate _id') ) return; // suppress this debug error while syncing. it should only need suppression in the scenario where you invoke an insert with a preset _id which should be rare and you'd probably want to use an upsert instead
return originalDebug.call(this, m, s);
}
export { Offline, isSyncing, queueMethod, clearAll };