feat(desktop): use atomWithStorage for masonry column value (#3023)

This commit is contained in:
Konv Suu
2025-03-12 13:59:42 +08:00
committed by GitHub
parent b67685b6c1
commit 137625f5e9
@@ -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))