docs-site/content/docs/resources/faq.md
+++ title = "FAQ" description = "Answers to frequently asked questions." date = 2021-05-01T19:30:00+00:00 updated = 2021-05-01T19:30:00+00:00 draft = false weight = 2 sort_by = "weight" template = "docs/page.html"
[extra] toc = true top = false flair =[] +++
<details> <summary>How can I automatically reload code?</summary>Try cargo watchexec:
$ watchexec --notify -r -- cargo loco start
Or bacon
$ bacon run
Loco reached 1.0 in July 2026, marking its first stable release, but its roots are older. It's almost a rewrite of Hyperstackjs.io, and Hyperstack is based on an internal Rails-like framework which is production ready.
Most of Loco is glue code around Axum, SeaORM, and other stable frameworks, so you can consider that.
As with any framework, evaluate Loco against your application's requirements and report issues if they arise.
</details> <details> <summary>Adding Custom Middleware in Loco</summary> Loco is compatible with Axum middlewares. Simply implement `FromRequestParts` in your custom struct and integrate it within your controller. </details> <details> <summary>Injecting Custom State or Layers in Loco?</summary> Yes, you can achieve this by implementing `Hooks::after_routes`. This hook receive Axum routers that Loco has already built, allowing you to seamlessly add any available Axum functions that suit your needs.If you need your routes or (404) fallback handler to be affected by loco's middleware, you can add them in Hooks::before_routes which is called before the middleware is installed.