forked from Yomguithereal/baobab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
defaults.js
37 lines (27 loc) · 841 Bytes
/
defaults.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* Baobab Default Options
* =======================
*
*/
module.exports = {
// Should the tree handle its transactions on its own?
autoCommit: true,
// Should the transactions be handled asynchronously?
asynchronous: true,
// Should the tree clone data when giving it back to the user?
clone: false,
// Which cloning function should the tree use?
cloningFunction: null,
// Should cursors be singletons?
cursorSingletons: true,
// Maximum records in the tree's history
maxHistory: 0,
// Collection of react mixins to merge with the tree's ones
mixins: [],
// Should the tree shift its internal reference when applying mutations?
shiftReferences: false,
// Custom typology object to use along with the validation utilities
typology: null,
// Validation specifications
validate: null
};