Add displayName to contexts (#8814)
This commit is contained in:
@@ -62,6 +62,7 @@ const ListConvosContext = createContext<{
|
||||
accepted: ChatBskyConvoDefs.ConvoView[]
|
||||
request: ChatBskyConvoDefs.ConvoView[]
|
||||
} | null>(null)
|
||||
ListConvosContext.displayName = 'ListConvosContext'
|
||||
|
||||
export function useListConvos() {
|
||||
const ctx = useContext(ListConvosContext)
|
||||
|
||||
@@ -35,12 +35,14 @@ interface ApiContext {
|
||||
}
|
||||
|
||||
const stateContext = React.createContext<StateContext>('')
|
||||
stateContext.displayName = 'NotificationsUnreadStateContext'
|
||||
|
||||
const apiContext = React.createContext<ApiContext>({
|
||||
async markAllRead() {},
|
||||
async checkUnread() {},
|
||||
getCachedUnreadPage: () => undefined,
|
||||
})
|
||||
apiContext.displayName = 'NotificationsUnreadApiContext'
|
||||
|
||||
export function Provider({children}: React.PropsWithChildren<{}>) {
|
||||
const {hasSession} = useSession()
|
||||
|
||||
Reference in New Issue
Block a user