aboutsummaryrefslogtreecommitdiff
path: root/src/modules/serverSideStorage.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2022-08-11 02:23:58 +0300
committerHenry Jameson <me@hjkos.com>2022-08-11 02:23:58 +0300
commit732733f115a863408a339e164ff88f1022c46101 (patch)
tree858d4010a958ed3701524d3d935c4fd0b251fcbf /src/modules/serverSideStorage.js
parent72e238ceb34304cb023a01a84c3f453aadaa775c (diff)
add a todo for future
Diffstat (limited to 'src/modules/serverSideStorage.js')
-rw-r--r--src/modules/serverSideStorage.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/serverSideStorage.js b/src/modules/serverSideStorage.js
index 11e66220..bff8e4ba 100644
--- a/src/modules/serverSideStorage.js
+++ b/src/modules/serverSideStorage.js
@@ -110,6 +110,9 @@ export const _mergeFlags = (recent, stale, allFlagKeys) => {
}
const _mergeJournal = (a, b) => uniqWith(
+ // TODO use groupBy to group by path, then trim them depending on operations,
+ // i.e. if field got removed in the end - no need to sort it beforehand, if field
+ // got re-added no need to remove it and add it etc.
[
...(Array.isArray(a) ? a : []),
...(Array.isArray(b) ? b : [])