This commit is contained in:
Shusui MOYATANI
2023-03-21 09:40:30 +09:00
parent 85ef6e4def
commit 07c02fd937
15 changed files with 227 additions and 208 deletions

View File

@@ -30,8 +30,7 @@ const Home: Component = () => {
createEffect(() => {
config().relayUrls.map(async (relayUrl) => {
const relay = await pool().ensureRelay(relayUrl);
// eslint-disable-next-line @typescript-eslint/no-explicit-any
relay.on('notice', (msg: any) => {
relay.on('notice', (msg: string) => {
console.error(`NOTICE: ${relayUrl}: ${msg}`);
});
});
@@ -44,6 +43,10 @@ const Home: Component = () => {
})),
);
createEffect(() => {
console.log(followingPubkeys());
});
const { events: followingsPosts } = useSubscription(() =>
ensureNonNull([pubkey()] as const)(([pubkeyNonNull]) => ({
relayUrls: config().relayUrls,