atomWithDefault
docs
code:ts
import { atomWithDefault } from 'jotai/utils'
const count1Atom = atom(1)
const count2Atom = atomWithDefault((get) => get(count1Atom) * 2)
useResetAtomを使うことでdefault値に戻せる
初期値だけ他のatomに依存させつつ、writableであるようなatomも定義できる
getOnInitってなんでデフォルトでfalse #??
そしてなんで第3引数ではなく、第4引数?