You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove action() export convention from route modules
Forms now POST to API routes directly instead of page route actions.
Simplify <Form> component to a thin fetch+redirect wrapper without
automatic revalidation. Add useRevalidate() hook (useRevalidateRoute
kept as deprecated alias). Remove ActionArgs, ActionEnvelope, ActionFn,
ActionResult types, useSubmitAction hook, CSRF validation on page
routes, action dispatch in handleViactRequest, and revalidation hints.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: examples/docs/src/routes/docs/adapters.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ Keep your `wrangler.jsonc` in the project root so you can add bindings without t
67
67
68
68
### Accessing Cloudflare bindings
69
69
70
-
The `env` object is passed through to your loaders and actions via the context:
70
+
The `env` object is passed through to your loaders and API routes via the context:
71
71
72
72
```ts
73
73
// src/routes/dashboard.tsx
@@ -151,7 +151,7 @@ node dist/server/server.js
151
151
152
152
## Context Factory
153
153
154
-
Adapters inject platform-specific values into loaders and actions via a context factory. This is where you connect database clients, environment bindings, and other platform resources:
154
+
Adapters inject platform-specific values into loaders and API routes via a context factory. This is where you connect database clients, environment bindings, and other platform resources:
0 commit comments