add a todo for future

This commit is contained in:
Henry Jameson 2022-08-11 02:23:58 +03:00
parent 72e238ceb3
commit 732733f115
1 changed files with 3 additions and 0 deletions

View File

@ -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 : [])