Deprecate ctx.get
, ctx.spy
, and allow calling an atom with one "ctx" argument for reading and tracking.
#844
Labels
good first issue
Good for newcomers
@artalar will change the runtime behaviour of the atom, but we need codemod, or the eslint fix feature which will make this changes:
ctx.spy(anAtom)
->anAtom(ctx)
ctx.get(anAtom)
->anAtom(ctx)
ctx.spy(anAtom, cb)
->import { spy } from "@reatom/framework"; ... spy(ctx, anAtom, cb)
ctx.get(cb)
->import { batch } from "@reatom/framework"; ... batch(ctx,cb)
The text was updated successfully, but these errors were encountered: