about summary refs log tree commit diff
path: root/src/state/cache/post-shadow.ts
Commit message (Collapse)AuthorAgeFilesLines
* Fix optimistic like/repost (#3503)dan2024-04-121-14/+18
|
* Thread queryClient explicitly through (#3328)dan2024-04-031-6/+12
| | | | | | | * Pass queryClient explicitly to resetProfilePostsQueries * Pass queryClient explicitly to updatePostShadow * Pass queryClient explicitly to updateProfileShadow
* Derive shadow like count (#2616)dan2024-01-251-5/+23
|
* Various search fixes (#2145)Paul Frazee2023-12-071-0/+4
| | | | | | | * Add posts-search query to shadow cache search * Update user search to use correct endpoint * Fix: include cursor in post search
* Rewrite the shadow logic to look inside the cache (#2045)dan2023-11-301-64/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Reset * Associate shadows with the cache * Use colocated helpers * Fix types * Reorder for clarity * More types * Copy paste logic for profile * Hook up profile query * Hook up suggested follows * Hook up other profile things * Fix shape * Pass setShadow into the effect deps * Include reply posts in the shadow cache search --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* Shadow refactoring and improvements (#1959)dan2023-11-211-29/+37
| | | | | | | | | | | | | | | * Make shadow a type-only concept * Prevent unnecessary init state recalc * Use derived state instead of effects * Batch emitter updates * Use object first seen time instead of dataUpdatedAt * Stop threading dataUpdatedAt through * Use same value consistently
* Do less work (#1953)dan2023-11-171-4/+6
|
* Add Shadow type (#1900)Paul Frazee2023-11-141-3/+14
|
* Refactor post threads to use react query (#1851)Paul Frazee2023-11-091-0/+90
* 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