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