Skip to content

Commit

Permalink
docs: added note about removal of implicit context import (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley authored Jul 8, 2024
1 parent 22bcfed commit 13f712b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/docs/03-syntax-and-usage/14-context.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 13f712b

Please sign in to comment.