Loader must take a req parameter