Comments (3)
I've worked on a handful of "app-like apps" using Remix lately, and this is still near the top of my wish list.
Although ESBuild runs are fast, in my opinion, maintaining state between changes is a really underrated capability. It helps in cases like editing a popover state while it's open, editing a menu item while it's open, toggles, and so on. The failure case as described in the OP is a valid one for sure. But I don't know if guarding against that is worth sidestepping a potentially huge boost in DX.
from remix.
I appreciate the Remix team leaving the door open to this, and so just wanted to weigh in for team HMR a bit!
I understand Remix's goals with SSR first, and I also agree that with Edge computing, it's likely where everything is headed. However, I assume there are many others like me who are building apps with significant client-side state and interaction in order to create really rich UX. One example of such an app would be an online collaborative editor, something like Figma or Miro.
It would be awesome to have some fast refresh capabilities to make building that kind of apps on Remix an even nicer experience. On my current project, I even use the Vite HMR API to enhance the development experience according to our business requirements.
from remix.
My story is I want to use remix as the framework for a react-three-fiber app.
I really like remix, but compared to using vite and their react plugin I get real time updates both to css and 3d code which is a must have once you have tried it.
Could we tell remix which folders to do fast refresh on?
that way we could get fast refresh on ui components and in my case the react-three-fiber app, but still have full reloads when changing loaders or route adjacent modules.
from remix.
Related Issues (20)
- Error thrown while listing Headers with single-fetch response stub in production build HOT 1
- Link tag navigating to route reloads page & no network fetch calls HOT 1
- Singlefetch `Error: Unable to decode turbo-stream response from URL: <URL>` HOT 7
- No route matched Vitest + Vite HOT 1
- 404 Page Causes Infinite Reload After Using `npx create-remix@latest` HOT 9
- unstable_data response headers not set HOT 4
- useLoaderData types broken if unstable_data is conditionally used HOT 1
- `cloudflareDevProxyVitePlugin` returns error type under `NodeNext` module resolution HOT 3
- When using the onerror event on an <img> element, the event does not trigger again after a page reload HOT 2
- BUG: useId generates duplicate IDs on initial render (ssr) HOT 2
- dev server unexpectedly loads CSS when using `?inline` imports HOT 1
- Cookie Session Storage value received from root loader sometimes stale HOT 2
- [lazy route discovery]: Link component causes re-render when `discover` is not set to `none` HOT 1
- unstable_data response headers not set HOT 7
- Dev server not working properly on Safari browser
- Top Suspense fallback not work HOT 8
- request.json() / request.text() doesn't resolve when "Content-Type" header is "application/json" HOT 7
- getInternalRouterError for missing POST endpoint instead of 405 Method Not Allowed HOT 9
- Loader function not executed after redirect to same url with different search params after update to remix v2 HOT 2
- Test setup/utils files importing server module gives: Server-only module referenced by client HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from remix.