Deprecate ctx.schedule
in favor of wrap(ctx, cbOrPromise)
. Deprecate ctx.controller
in favor of getTopController(ctx)
.
#845
Labels
good first issue
Good for newcomers
We need codemod, or the eslint fix feature which will make this changes:
ctx.schedule(cb)
->import { wrap } from "@reatom/framework"; ... wrap(ctx, cb)
ctx.schedule(cb, N)
->import { schedule } from "@reatom/framework"; ... schedule(ctx, cb, N)
ctx.controller
->import { getController } from "@reatom/framework"; ... getController(ctx)
The text was updated successfully, but these errors were encountered: