Loader state is able to be updated by middlewares