You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{createCtx,atom}from'@reatom/core'import{connectLogger}from'@reatom/logger'constctx=createCtx()connectLogger(ctx)constcounterAtom=atom(0,'counterAtom')constdoubledAtom=atom((ctx)=>ctx.spy(counterAtom)*2,'doubledAtom')counterAtom(ctx,24)console.log(ctx.get(doubledAtom))// Should generate log
Code example:
This code generate in logs only:
42
But if I add subscription before reading
Logs generated as expected
The text was updated successfully, but these errors were encountered: