Adds support for reading an atom's value without subscribing to it.
Read atom data without subscribing to changes with get.peek.
const countAtom = atom(0)
atomEffect((get, set) => {
// will not rerun when countAtom changes
const count = get.peek(countAtom)
})What's Changed
- feat: get.peek reads atom value without subscribing to updates by @dmaskasky in #30
Full Changelog: v0.4.0...v0.5.0