mirror of
https://github.com/lumehq/lume.git
synced 2025-09-20 16:50:51 +02:00
disabled relaypool cache
This commit is contained in:
@@ -5,7 +5,7 @@ import { createContext, useMemo } from 'react';
|
||||
export const RelayContext = createContext({});
|
||||
|
||||
export default function RelayProvider({ relays, children }: { relays: any; children: React.ReactNode }) {
|
||||
const value = useMemo(() => new RelayPool(relays, { useEventCache: true }), [relays]);
|
||||
const value = useMemo(() => new RelayPool(relays, { useEventCache: false }), [relays]);
|
||||
|
||||
return <RelayContext.Provider value={value}>{children}</RelayContext.Provider>;
|
||||
}
|
||||
|
Reference in New Issue
Block a user