about summary refs log tree commit diff
path: root/src/state/queries/notifications
Commit message (Collapse)AuthorAgeFilesLines
...
* Adjust stale-caches and dont group read&unread notifs together (#2041)Paul Frazee2023-11-291-1/+2
| | | | | | | | | * Dont group read & unread notifications together * Remove and reduce some stale cache times * Keep the staleTime on the post-feed * Bring back the load-bearing staletime on profile
* Fix infinite query reloading behavior (reset, not invalidate) (#2031)Paul Frazee2023-11-291-1/+1
| | | | | * Reset, not invalidate, notification queries * Reset, not invalidate, feed queries
* Refactor the notifications to cache and reuse results from the unread-notifs ↵Paul Frazee2023-11-294-215/+347
| | | | | | | checks (#2017) * Refactor the notifications to cache and reuse results from the unread-notifs checks * Fix types
* Get more rigorous about getAgent() consistency (#2026)Paul Frazee2023-11-292-8/+6
| | | | | * Get more rigorous about getAgent() consistency * Update the feed wrapper API to use getAgent() directly
* Restore post-thread caching behaviors (react-query refactor) (#2010)Paul Frazee2023-11-271-1/+38
| | | | | | | | | | | | | | | | | | | | | * Rework resolve-did and resolve-uri queries to be smarter about cache reuse * Precache handle resolutions * Remove old unused code * Load placeholder threads from the post-feed and notifications-feed queries * Remove logs * Fix bad ref * Add loading spinners to the cache-loading thread view * Scroll replies into view when loading threads * Add caching within a thread * Fix: dont show bottom border when the child spinner is active
* Don't check unread if session doesn't exist (#2008)Eric Bailey2023-11-271-1/+5
|
* Improve notification load behaviors (#1943)Paul Frazee2023-11-161-2/+0
| | | | | | | * Dont use the stale cache for notifs-feed * Add a delay to marking all read to avoid marking upcoming posts as read * Trigger automatic notifications refresh when navigating to the tab, in certain conditions
* Move the current agent to a global and reset RQ queries on agent change (#1946)Paul Frazee2023-11-162-9/+10
|
* Caching heuristics (#1938)Eric Bailey2023-11-161-0/+2
| | | | | * Tempfix profile load * First pass at staleTime
* Refactor notifications to use react-query (#1878)Paul Frazee2023-11-123-0/+363
* Move broadcast channel to lib * Refactor view/com/post/Post and remove temporary 2 components * Add useModerationOpts hook * Refactor notifications to use react-query * Fix: only trigger updates in useModerationOpts when the values have changed * Implement unread notification tracking * Add moderation filtering to notifications * Handle native/push notifications * Remove dead code --------- Co-authored-by: Eric Bailey <git@esb.lol>