Loader state able to be updated by middlewares