fastapi/docs
JP-Ellis 44ff653664
docs: add caveat about ContextVar in dependencies
As discovered and discussed in #13382, ContextVars set in a
_synchronous_ dependency is not available to the rest of the request due
to the way FastAPI handles that dependency.

The documentation did not make any mention of this, and it was only
after I asked that I discovered this was intended behaviour. So I am
updating the docs to make this clear to others.

Ref: #13382
Signed-off-by: JP-Ellis <josh@jpellis.me>
2025-07-16 10:08:17 +10:00
..
az 🩺 Unify the badges across all tutorial translations (#13329) 2025-02-20 21:53:18 +01:00
bn 🌐 Add Bangali translation for `docs/bn/about/index.md` (#13882) 2025-07-14 14:58:49 +02:00
de 📝 Update Speakeasy URL to Speakeasy Sandbox (#13697) 2025-06-17 13:53:56 +02:00
em 🍱 Update Drawio diagrams SVGs, single file per diagram, sans-serif font (#13706) 2025-05-11 15:37:26 +02:00
en docs: add caveat about ContextVar in dependencies 2025-07-16 10:08:17 +10:00
es 📝 Update Speakeasy URL to Speakeasy Sandbox (#13697) 2025-06-17 13:53:56 +02:00
fa 🌐 Add Persian translation for `docs/fa/docs/learn/index.md` (#13518) 2025-06-16 12:43:07 +02:00
fr 🩺 Unify the badges across all tutorial translations (#13329) 2025-02-20 21:53:18 +01:00
he 🩺 Unify the badges across all tutorial translations (#13329) 2025-02-20 21:53:18 +01:00
hu 🩺 Unify the badges across all tutorial translations (#13329) 2025-02-20 21:53:18 +01:00
id 🩺 Unify the badges across all tutorial translations (#13329) 2025-02-20 21:53:18 +01:00
it 🩺 Unify the badges across all tutorial translations (#13329) 2025-02-20 21:53:18 +01:00
ja ✏️ Fix typo in `docs/ja/docs/tutorial/encoder.md` (#13815) 2025-06-22 16:36:05 +02:00
ko 🌐 Add Korean translation for `docs/ko/docs/advanced/sub-applications.md` (#4543) 2025-06-12 09:32:09 +02:00
nl 🩺 Unify the badges across all tutorial translations (#13329) 2025-02-20 21:53:18 +01:00
pl 🩺 Unify the badges across all tutorial translations (#13329) 2025-02-20 21:53:18 +01:00
pt 📝 Update Speakeasy URL to Speakeasy Sandbox (#13697) 2025-06-17 13:53:56 +02:00
ru 🌐 Add Russian translation for `docs/ru/docs/advanced/response-directly.md` (#13801) 2025-07-04 07:21:55 +02:00
tr 🩺 Unify the badges across all tutorial translations (#13329) 2025-02-20 21:53:18 +01:00
uk 🌐 Add Ukrainian translation for `docs/uk/docs/tutorial/body-updates.md` (#13804) 2025-06-30 08:00:04 +02:00
ur 🌐 Update Urdu translation for `docs/ur/docs/benchmarks.md` (#10046) 2024-08-17 06:42:07 +00:00
vi 🌐 Add Vietnamese translation for `docs/vi/docs/deployment/cloud.md` (#13407) 2025-03-07 04:24:13 +01:00
yo 🩺 Unify the badges across all tutorial translations (#13329) 2025-02-20 21:53:18 +01:00
zh ✏️ Remove redundant words in docs/zh/docs/python-types.md (#13774) 2025-06-09 06:15:17 +02:00
zh-hant 🩺 Unify the badges across all tutorial translations (#13329) 2025-02-20 21:53:18 +01:00
language_names.yml 🌐 Modify the description of `zh` - Traditional Chinese (#10889) 2024-01-22 20:42:53 +01:00
missing-translation.md 🔧 Update docs setup with latest configs and plugins (#11953) 2024-08-05 23:48:30 -05:00