Adds the same previousLoadedRoute strategy used in source views to
individual patches.
Since we where re-fetching a lot of diffs on patch view load and in between tags, this patch adds a svelte store that stores those diffs in memory (indexed by base and head commit and RID) and avoids refetching them since they are immutable.
Adds the same previousLoadedRoute strategy used in source views to
individual patches.
Since we where re-fetching a lot of diffs on patch view load and in between tags, this patch adds a svelte store that stores those diffs in memory (indexed by base and head commit and RID) and avoids refetching them since they are immutable.
Fix svelte-check
Some more polishing
Rename some diff cache methods
Reduces more requests between History and Source view
Rebase.
Simplify the diff store by using the LRU cache
Rebase
Remove SAFETY comment, move and rename cacheQueryDiff to project router -> cachedGetDiff