Speed up API in Dev: Move Code Reloader to Browser Pipeline
I've been working on my GraphQL API, and found that all of the code reloaders/checks ran on every endpoint call, which cause ~1-3s delay on every API request! I moved the following plugs from
endpoint.ex to router.ex:
Now, I get instant API calls in development. In my case, there really isn't a downside because I test with GraphiQL, so I still get the code reloading via that. YMMV. 🚀0 Replies