Commit Graph

2729 Commits

Author SHA1 Message Date
e2a49aec71 Trim old pages from the cache 2024-08-19 15:10:20 +08:00
2282a6adde Set cache info in the cache pageInfo section 2024-08-19 14:38:03 +08:00
8f480d654a More debugging 2024-08-19 14:08:25 +08:00
45c7a57696 More debugging 2024-08-19 13:51:41 +08:00
ca7b515488 Remove some of the cache logging to make debugging easier 2024-08-19 13:21:06 +08:00
e6a220c984 Remove stale time to force refreshed, start using the cached result 2024-08-19 13:00:14 +08:00
4bfcbde65d Some more list improvements 2024-08-19 12:42:43 +08:00
541aa859d2 Use staleTime 2024-08-17 17:07:14 +08:00
f80570a1ac More debug 2024-08-17 16:13:15 +08:00
1e0df9016c More debugging 2024-08-17 15:54:19 +08:00
1e2c3b1f8f Fix typo 2024-08-17 15:40:33 +08:00
975ae6bee5 TEst out react-infinite-scroll-component 2024-08-17 15:36:27 +08:00
3435edfb51 Remove maxPages 2024-08-17 15:21:57 +08:00
b0e7737e18 Add getPreviousPage 2024-08-17 14:43:22 +08:00
35c7954809 Comment out old containers temporarily 2024-08-17 14:23:37 +08:00
095e75f7bd Attempt at using maxPages 2024-08-17 14:19:26 +08:00
675e17da79 Add pending items 2024-08-16 17:16:29 +08:00
9a2490253c Improve fetchMore, add debug 2024-08-16 15:55:36 +08:00
e3fd98e47c More debugging 2024-08-16 10:47:48 +08:00
641c64e108 Try max pages 5 2024-08-15 16:51:08 +08:00
49b66f3504 Remove the cache busting 2024-08-15 16:27:05 +08:00
3ceb18400c Only allow three pages of data to be refreshed 2024-08-15 15:24:02 +08:00
913ad0c5d4 More cache key debugging 2024-08-15 13:20:29 +08:00
5f94a2a38b Remove stale time on infinite query 2024-08-15 12:35:39 +08:00
9e86ddc39b Improve cache key when no query, reduce stale time 2024-08-15 12:20:24 +08:00
5373f16328 Add a staleTime to library items query 2024-08-15 11:56:22 +08:00
39da8e60c1 More debugging on infinite scroll 2024-08-15 11:39:26 +08:00
9923a3baa1 Set a stale time to try to prevent over fetching 2024-08-14 12:55:45 +08:00
e16acb7f60 Use react-query for most viewer queries to get better caching, remove the maxpages on library as that broke scrolling 2024-08-14 11:41:55 +08:00
4c992f74ec Merge pull request #4260 from omnivore-app/perf/cache-api-response
perf/cache api response
2024-08-14 11:32:19 +08:00
48f427401f Set maxPages to 2, dont disable refetch yet 2024-08-14 10:01:51 +08:00
f58ddbeb9a Add maxPages and refetchOnMount params 2024-08-14 09:58:29 +08:00
338f3bca78 WIP: infinite scroll on the library with react-query 2024-08-14 09:48:56 +08:00
c2ec95845e request count of library items only when needed 2024-08-14 09:40:59 +08:00
c68680fad9 Use a portal on dropdowns so it doesnt move window when opened from scrolled shortcuts 2024-08-14 00:05:50 +08:00
588f7d0fdc Use a separate section for search so we can better control the folder 2024-08-13 23:38:18 +08:00
cca1cbfff4 Shortcuts editor for the web 2024-08-13 23:28:51 +08:00
0d814bd76a Fix typo 2024-08-13 20:10:04 +08:00
6fa9550cdc Update the empty states, special handler for the subscriptions empty state case. 2024-08-13 20:06:57 +08:00
4bc154605f get highlightsCount from the backend and show the count on web 2024-08-13 18:01:20 +08:00
602acbbe31 Leave recommendations attribute as it still could be used in iOS 2024-08-13 17:12:26 +08:00
a0c3d1d18e Use 48hrs for cache timeout 2024-08-13 17:04:24 +08:00
22216e33b8 Use AsyncStorage for local cache 2024-08-13 17:00:05 +08:00
a92db4e216 Dont query for recommendations 2024-08-13 16:41:44 +08:00
788b44c7c9 Use router instead of window.location to better handle the local cache 2024-08-13 16:41:24 +08:00
24cea105f0 Remove persist client 2024-08-13 14:33:06 +08:00
801f075952 Remove optimistic client loading 2024-08-13 14:26:58 +08:00
3b57461efa Remove unused 2024-08-13 14:15:43 +08:00
d51aed5b7c Rendering improvements, remove unused 2024-08-13 13:29:57 +08:00
742772fdb7 Disable the menu close on click on small screens, need to research this more 2024-08-13 11:23:34 +08:00