0
操作フック(保存)から別の保存(保存後)にコンテキストを渡す必要がありますが、ctx.hookState
のexistenceは認識されますが動作しません。'保存後のコンテキスト'を保存します
ZZ.observe('persist', (ctx, next) => {
ctx.hookState = "pass this";
next();
}).catch(err => next(err));
});
ZZ.observe('after save', (ctx, next) => {
console.log(ctx.hookState);
next()
});
console.log(ctx.hookState)
には何も表示されません。私は間違っているの?
ありがとうございました。
うん、全てのセンスを作ります!ありがとうございました。 –