docs: Add detail to Deno KV auth example (#1665)
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user