npm jotai-effect 0.5.0
v0.5.0

latest releases: 2.2.3, 2.2.1, 2.2.0...
23 months ago

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

Don't miss a new jotai-effect release

NewReleases is sending notifications on new releases.