use localStorage for cache

This commit is contained in:
Shusui MOYATANI
2023-03-20 20:51:14 +09:00
parent 9a764ba086
commit 44a512c64b
16 changed files with 172 additions and 319 deletions

View File

@@ -51,17 +51,14 @@ const TextNoteDisplay: Component<TextNoteDisplayProps> = (props) => {
const actions = () => props.actions ?? true;
const { profile: author } = useProfile(() => ({
relayUrls: config().relayUrls,
pubkey: props.event.pubkey,
}));
const { reactions, isReactedBy, invalidateReactions } = useReactions(() => ({
relayUrls: config().relayUrls,
eventId: props.event.id as string, // TODO いつかなおす
}));
const { reposts, isRepostedBy, invalidateDeprecatedReposts } = useDeprecatedReposts(() => ({
relayUrls: config().relayUrls,
eventId: props.event.id as string, // TODO いつかなおす
}));