mirror of
https://github.com/logos-messaging/examples.waku.org.git
synced 2026-01-04 05:43:07 +00:00
rename var
This commit is contained in:
parent
6654248738
commit
21c2d46436
@ -100,7 +100,7 @@ export const useNodePeers = (node: undefined | LightNode) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const fetchData = async () => {
|
const initHookData = async () => {
|
||||||
const { CONNECTED, DISCOVERED } =
|
const { CONNECTED, DISCOVERED } =
|
||||||
await node.connectionManager.getPeersByDiscovery();
|
await node.connectionManager.getPeersByDiscovery();
|
||||||
|
|
||||||
@ -133,7 +133,7 @@ export const useNodePeers = (node: undefined | LightNode) => {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
fetchData();
|
initHookData();
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
node.connectionManager.removeEventListener(
|
node.connectionManager.removeEventListener(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user