mirror of
https://github.com/logos-messaging/waku-react.git
synced 2026-01-03 06:33:07 +00:00
fix formatting
This commit is contained in:
parent
406ed469cf
commit
a6a95654f2
@ -1,6 +1,6 @@
|
||||
import type { ProtocolCreateOptions, Protocols, Waku } from "@waku/interfaces";
|
||||
import type { RelayCreateOptions } from "@waku/relay";
|
||||
import type { waku } from "@waku/sdk";
|
||||
import type { Protocols, Waku, ProtocolCreateOptions } from "@waku/interfaces";
|
||||
|
||||
export type HookState = {
|
||||
isLoading: boolean;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import React from "react";
|
||||
import { waitForRemotePeer, createLightNode, createRelayNode } from "@waku/sdk";
|
||||
import type { LightNode, RelayNode, Waku } from "@waku/interfaces";
|
||||
import { createLightNode, createRelayNode, waitForRemotePeer } from "@waku/sdk";
|
||||
|
||||
import type {
|
||||
BootstrapNodeOptions,
|
||||
|
||||
@ -58,8 +58,7 @@ export const useFilterMessages = (
|
||||
let unsubscribe: null | Unsubscribe = null;
|
||||
setLoading(true);
|
||||
|
||||
(node.filter
|
||||
.subscribe([decoder], pushMessage) as Promise<Unsubscribe>)
|
||||
(node.filter.subscribe([decoder], pushMessage) as Promise<Unsubscribe>)
|
||||
.then((unsubscribeFn) => {
|
||||
setLoading(false);
|
||||
unsubscribe = unsubscribeFn;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user