Paul Frazee
a03f57c8c3
Apply feed preferences (react-query refactor) ( #2040 )
...
* Actually implement the feed tuners hook
* Move feed-tuner pass into select() to have it apply immediately on change
2023-11-29 20:11:01 -08:00
Eric Bailey
b83fa95793
Handle nsfw feeds in public view ( #2035 )
...
* Handle nsfw feeds in public view
* Translate
* Refactor, new approach
* Translate
* Copy
* Translate
* Revert changes to Feed
* Remove unused retry
* Translate
2023-11-29 19:27:58 -08:00
Paul Frazee
630637874d
Fix state lifecycle management with post-feed query, solving the duplicate key issue ( #2034 )
...
* Assign keys to feed slices via a counter, to enable duplicate items in the feed if needed
* Move post-feed query state into the query's page params to consistently bind their lifecycles
2023-11-29 18:58:14 -06:00
Paul Frazee
6fe2b52f68
Get more rigorous about getAgent() consistency ( #2026 )
...
* Get more rigorous about getAgent() consistency
* Update the feed wrapper API to use getAgent() directly
2023-11-29 10:10:04 -08:00
Eric Bailey
17a183514a
Ensure we use following feed if merge is disabled ( #2005 )
2023-11-27 17:42:02 -08:00
Paul Frazee
f580d4daf0
Restore post-thread caching behaviors (react-query refactor) ( #2010 )
...
* 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
2023-11-27 17:41:30 -08:00
Paul Frazee
357c752a21
Move the current agent to a global and reset RQ queries on agent change ( #1946 )
2023-11-16 18:26:22 -08:00
Eric Bailey
6dfb2a232f
Caching heuristics ( #1938 )
...
* Tempfix profile load
* First pass at staleTime
2023-11-16 15:28:50 -08:00
Paul Frazee
03b20c70e4
Fix memo params causing tuner to lose state ( #1924 )
2023-11-15 17:42:15 -08:00
Eric Bailey
b04748e703
Factor out store from post-feed query ( #1888 )
2023-11-13 14:07:18 -08:00
Paul Frazee
c8c308e31e
Refactor feeds to use react-query ( #1862 )
...
* Update to react-query v5
* Introduce post-feed react query
* Add feed refresh behaviors
* Only fetch feeds of visible pages
* Implement polling for latest on feeds
* Add moderation filtering to slices
* Handle block errors
* Update feed error messages
* Remove old models
* Replace simple-feed option with disable-tuner option
* Add missing useMemo
* Implement the mergefeed and fixes to polling
* Correctly handle failed load more state
* Improve error and empty state behaviors
* Clearer naming
2023-11-10 15:34:25 -08:00