docs: Add detail to Deno KV auth example (#1665)

This commit is contained in:
Josh Gum
2023-09-03 21:54:12 +00:00
committed by GitHub
parent f9ab05f7ea
commit 3858f5ad03
10 changed files with 22 additions and 16 deletions
+2 -1
View File
@@ -140,7 +140,8 @@ export default function MyIsland({ children, foo }: Props) {
<div>
<p>String from props: {foo}</p>
<p>
<button onClick={() => (number.value = randomNumber())}>Random</button>{" "}
<button onClick={() => (number.value = randomNumber())}>Random</button>
{" "}
number is: {number}.
</p>
</div>
+1 -1
View File
@@ -26,7 +26,7 @@ interface State {
export async function handler(
req: Request,
ctx: MiddlewareHandlerContext<State>
ctx: MiddlewareHandlerContext<State>,
) {
ctx.state.data = "myData";
const resp = await ctx.next();