about summary refs log tree commit diff
path: root/src/state/preferences/hidden-posts.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/preferences/hidden-posts.tsx')
-rw-r--r--src/state/preferences/hidden-posts.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state/preferences/hidden-posts.tsx b/src/state/preferences/hidden-posts.tsx
index 2c6a373e1..510af713d 100644
--- a/src/state/preferences/hidden-posts.tsx
+++ b/src/state/preferences/hidden-posts.tsx
@@ -44,8 +44,8 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
   )
 
   React.useEffect(() => {
-    return persisted.onUpdate(() => {
-      setState(persisted.get('hiddenPosts'))
+    return persisted.onUpdate('hiddenPosts', nextHiddenPosts => {
+      setState(nextHiddenPosts)
     })
   }, [setStateWrapped])