diff --git a/apps/desktop/src/renderer/src/modules/entry-column/atoms/index.ts b/apps/desktop/src/renderer/src/modules/entry-column/atoms/index.ts index 836d75310..866b26311 100644 --- a/apps/desktop/src/renderer/src/modules/entry-column/atoms/index.ts +++ b/apps/desktop/src/renderer/src/modules/entry-column/atoms/index.ts @@ -1,5 +1,6 @@ import { createAtomHooks } from "@follow/utils/jotai" -import { atom } from "jotai" +import { getStorageNS } from "@follow/utils/ns" +import { atomWithStorage } from "jotai/utils" export const [, , useMasonryColumnValue, , getMasonryColumnValue, setMasonryColumnValue] = - createAtomHooks(atom(-1)) + createAtomHooks(atomWithStorage(getStorageNS("masonry-column"), -1))