Defer rendered callback until afterFlush