refactor newsfeed and note
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user