You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
422 B
13 lines
422 B
import { |
|
enterMetadataRelaysOnlyBypass, |
|
leaveMetadataRelaysOnlyBypass |
|
} from '@/lib/read-only-relay-personal' |
|
import { useEffect } from 'react' |
|
|
|
/** Disable “only my relay lists” while mounted (relay explore, search, relay directory). */ |
|
export function useBypassMetadataRelaysOnlyPolicy(): void { |
|
useEffect(() => { |
|
enterMetadataRelaysOnlyBypass() |
|
return () => leaveMetadataRelaysOnlyBypass() |
|
}, []) |
|
}
|
|
|