don't hate me, old git is fuck up
This commit is contained in:
10
src/stores/currentUser.tsx
Normal file
10
src/stores/currentUser.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { persistentAtom } from '@nanostores/persistent';
|
||||
|
||||
export const currentUser = persistentAtom(
|
||||
'currentUser',
|
||||
{},
|
||||
{
|
||||
encode: JSON.stringify,
|
||||
decode: JSON.parse,
|
||||
}
|
||||
);
|
||||
Reference in New Issue
Block a user