Skip to content

Commit

Permalink
use content rather than modification date for cache key (#2063)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebykat authored May 12, 2020
1 parent 7e65566 commit 25a41a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/note-list/get-note-title-and-preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const withCache = (getKey, getValue) => (note) => {
export const clearCache = () => noteCache.clear();

const getNoteTitleAndPreview = withCache(
(note) => note.data.modificationDate,
(note) => note.data.content,
getNoteExcerpt
);

Expand Down

0 comments on commit 25a41a4

Please sign in to comment.