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
As described in the title, the issue happens when running npm run dev (remix vite:dev) script.
I did create a basic reproduction example with a few pages using the Cloudflare template, which works fine when deployed to Cloudflare Pages, but not locally in dev mode.
Used command to generate project: npx create-remix@latest --template remix-run/remix/templates/cloudflare.
Problems:
when clicking a page the page always hard refreshes (in dev mode)
when submitting the form it's being submitted with a full page load (in dev mode)
Both problems do not occur on the deployment to Cloudflare Pages.
wouterds
changed the title
Remix (with Vite and Cloudflare) suffers multiple issues in dev mode (hard refresh, <Form> hard refresh, ..)
"Remix (with Vite and Cloudflare)" template suffers multiple issues in dev mode (hard refresh, <Form> hard refresh, ..)
May 10, 2024
Reproduction
As described in the title, the issue happens when running
npm run dev
(remix vite:dev
) script.I did create a basic reproduction example with a few pages using the Cloudflare template, which works fine when deployed to Cloudflare Pages, but not locally in dev mode.
Used command to generate project:
npx create-remix@latest --template remix-run/remix/templates/cloudflare
.Problems:
Both problems do not occur on the deployment to Cloudflare Pages.
System Info
Used Package Manager
npm
Expected Behavior
Soft navigation & soft form submission (as when deployed to CF Pages).
Actual Behavior
Hard refreshes, navigation & form submission (dev mode).
Untitled.mov
The text was updated successfully, but these errors were encountered: