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.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state/preferences/hidden-posts.tsx b/src/state/preferences/hidden-posts.tsx
index 510af713d..f87460bf6 100644
--- a/src/state/preferences/hidden-posts.tsx
+++ b/src/state/preferences/hidden-posts.tsx
@@ -14,10 +14,12 @@ type ApiContext = {
 const stateContext = React.createContext<StateContext>(
   persisted.defaults.hiddenPosts,
 )
+stateContext.displayName = 'HiddenPostsStateContext'
 const apiContext = React.createContext<ApiContext>({
   hidePost: () => {},
   unhidePost: () => {},
 })
+apiContext.displayName = 'HiddenPostsApiContext'
 
 export function Provider({children}: React.PropsWithChildren<{}>) {
   const [state, setState] = React.useState(persisted.get('hiddenPosts'))