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 =
|
const data =
|
||||||
useSyncExternalStore(
|
useSyncExternalStore(
|
||||||
c => InteractionCache.hook(c, id),
|
c => InteractionCache.hook(c, id),
|
||||||
() => InteractionCache.snapshot()[0]
|
() => InteractionCache.snapshot().find(a => a.id === id)
|
||||||
) || EmptyInteraction;
|
) || EmptyInteraction;
|
||||||
return {
|
return {
|
||||||
data: data,
|
data: data,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user