From 13f712b3766bc9d186213622b1ecd43a63b59afb Mon Sep 17 00:00:00 2001 From: Garrett Ladley <92384606+garrettladley@users.noreply.github.com> Date: Mon, 8 Jul 2024 05:37:55 -0400 Subject: [PATCH] docs: added note about removal of implicit context import (#835) --- docs/docs/03-syntax-and-usage/14-context.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/docs/03-syntax-and-usage/14-context.md b/docs/docs/03-syntax-and-usage/14-context.md index fdf727771..4b2c560b9 100644 --- a/docs/docs/03-syntax-and-usage/14-context.md +++ b/docs/docs/03-syntax-and-usage/14-context.md @@ -134,6 +134,10 @@ templ themeName() { } ``` +:::note +As of v0.2.731, Go's built in `context` package is no longer implicitly imported into .templ files. +::: + ## Using `context` with HTTP middleware In HTTP applications, a common pattern is to insert HTTP middleware into the request/response chain.