fix: directly get user without useLiveQuery
This commit is contained in:
parent
3dce87ce3a
commit
7a937bc4c9
@ -18,11 +18,8 @@ export function useQuery(query: string, limit: number = 5) {
|
||||
}
|
||||
|
||||
export function useKey(pubKey: HexKey) {
|
||||
const defaultUser = useLiveQuery(
|
||||
() => inMemoryDb.find(pubKey),
|
||||
[pubKey]
|
||||
)
|
||||
|
||||
// @ts-ignore
|
||||
const defaultUser = inMemoryDb.users[pubKey]
|
||||
const user = useLiveQuery(async () => {
|
||||
if (pubKey) {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user