bug: interaction cache lookup
This commit is contained in:
parent
816aa3b838
commit
1dcf15ceeb
@ -15,7 +15,7 @@ export function useInteractionCache(pubkey?: HexKey, event?: u256) {
|
||||
const data =
|
||||
useSyncExternalStore(
|
||||
c => InteractionCache.hook(c, id),
|
||||
() => InteractionCache.snapshot()[0]
|
||||
() => InteractionCache.snapshot().find(a => a.id === id)
|
||||
) || EmptyInteraction;
|
||||
return {
|
||||
data: data,
|
||||
|
Loading…
x
Reference in New Issue
Block a user