mirror of
https://github.com/lumehq/lume.git
synced 2025-03-28 02:31:49 +01:00
disabled relaypool cache
This commit is contained in:
parent
3fa2fc442f
commit
2ef3e9ba85
@ -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>;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user