Eric Bailey
45d354cd0c
[Session] Add useAgent
hook and replace ( #3706 )
...
* Hook it up
* Memoize getAgent method
* Use one shared reference
---------
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2024-04-25 22:29:05 +01:00
dan
887fedabea
[Statsig] Track like/follow metadata ( #3435 )
...
* Track becoming mutuals
* Track poster/liker status
* Track post and followee clout
* Track follower and liker clout
* Extract utility
2024-04-08 18:38:51 +01:00
dan
b783745b2e
Extract query key roots to constants ( #3404 )
...
* Extract query key roots to constants
* Dedupe labelers-detailed-info
* Align naming
2024-04-04 18:57:38 +01:00
dan
fc1e30afd6
Thread queryClient explicitly through ( #3328 )
...
* Pass queryClient explicitly to resetProfilePostsQueries
* Pass queryClient explicitly to updatePostShadow
* Pass queryClient explicitly to updateProfileShadow
2024-04-03 23:33:46 +01:00
dan
7eaa573b57
[Statsig] Track likes, reposts, follows ( #3195 )
...
* [Statsig] Track likes
* Move tracking to intent
* Track repost/unrepost
* Track profile follows/unfollows
* Less copy paste
* Reorder
2024-03-13 22:31:51 +00:00
dan
8d3179f082
Fix races for post like/repost toggle ( #2617 )
2024-01-25 21:25:12 +00:00
dan
3b26b32f7f
Derive shadow like count ( #2616 )
2024-01-25 21:21:07 +00:00
Ansh
8e541d753a
Check Analytics ( #2106 )
...
* fix sign in event tracking
* add missing analytics events
* add more missing analytics
* fix like and unrepost event tracking
* reset onEndReachedThreshold
2023-12-06 09:45:01 -08:00
Paul Frazee
fcd22d4ccb
Adjust stale-caches and dont group read&unread notifs together ( #2041 )
...
* 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
2023-11-29 20:27:39 -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
Eric Bailey
f23e9978d8
Update post embed fetching to use new methods ( #1916 )
...
* Update post embed fetching to use new methods
* Use session agent
2023-11-15 17:09:13 -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
Paul Frazee
fb4f5709c4
Refactor post threads to use react query ( #1851 )
...
* Add post and post-thread queries
* Update PostThread components to use new queries
* Move from normalized cache to shadow cache model
* Merge post shadow into the post automatically
* Remove dead code
* Remove old temporary session
* Fix: set agent on session creation
* Temporarily double-login
* Handle post-thread uri resolution errors
2023-11-09 15:35:25 -08:00