refactor newsfeed and note

This commit is contained in:
Ren Amamiya
2023-03-25 15:26:32 +07:00
parent f1965e1b43
commit f1647fd857
23 changed files with 530 additions and 444 deletions

View File

@@ -1,9 +1,9 @@
import { isSSR } from '@utils/ssr';
import { getActiveAccount } from '@utils/storage';
import { atomWithCache } from 'jotai-cache';
import { atom } from 'jotai';
export const activeAccountAtom = atomWithCache(async () => {
export const activeAccountAtom = atom(async () => {
const response = isSSR ? {} : await getActiveAccount();
return response;
});