useAtomCallback
code:ts
import { useAtomCallback } from 'jotai/utils'
const f = () => {
const readCount = useAtomCallback(
useCallback((get, set, arg1, args2, ...) => {
const currCount = get(countAtom)
setCount(currCount)
return currCount
}, [])
)
...
}