diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-04-30 21:06:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-30 21:06:51 -0700 |
commit | 31cb3e54222afc0b56e9d3e7997e2229797ff11e (patch) | |
tree | d837a8d0f7e08b1d97e22b77c69bdc93bad2554c /src/state/queries/post-feed.ts | |
parent | 39807a86309ccfeeffbd054808c0e78e42ff940e (diff) | |
download | voidsky-31cb3e54222afc0b56e9d3e7997e2229797ff11e.tar.zst |
Performance improvements: structural sharing & moderation opts context (#3785)
* Fix: correctly apply structural sharing to preferences object * Move moderation opts into a context * Fix import * Remove log * Pass userdid directly * Pass moderationPrefs directly
Diffstat (limited to 'src/state/queries/post-feed.ts')
-rw-r--r-- | src/state/queries/post-feed.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/state/queries/post-feed.ts b/src/state/queries/post-feed.ts index c265cecd6..827f8a2a8 100644 --- a/src/state/queries/post-feed.ts +++ b/src/state/queries/post-feed.ts @@ -32,7 +32,8 @@ import {FeedTuner, FeedTunerFn, NoopFeedTuner} from 'lib/api/feed-manip' import {BSKY_FEED_OWNER_DIDS} from 'lib/constants' import {KnownError} from '#/view/com/posts/FeedErrorMessage' import {useFeedTuners} from '../preferences/feed-tuners' -import {useModerationOpts, usePreferencesQuery} from './preferences' +import {useModerationOpts} from '../preferences/moderation-opts' +import {usePreferencesQuery} from './preferences' import {embedViewRecordToPostView, getEmbeddedPost} from './util' type ActorDid = string |