⚛️ Ayer, el team de @reactjs anunció un nuevo feature super experimental, voy a intentar explicar de que trata, pero primero vamos a definir algunos conceptos para estar todos en la misma, CSR, SSR, SSG y ISR, y no confundirlos con los nuevos Server Components
A URL is a URI, but a URI is not always a URL.
e.g. a torrent magnet link is a URI, but not a URL, it identifies a resource (the torrent) but doesn't locate it via a protocol like HTTP or FTP.
I think I finally get @CloudflareDev Durable Objects.
If Workers are serverless functions, then DOs are serverless objects.
Workers run and disappear. DOs stay in memory, so they can hold state instead of pushing everything to a DB.
I read some didn't liked @remix_run v3 manual this.update(), so I wrote a simple `state` helper that works like React's useState and automatically trigger a re-render on state changes
Something nice about the new @remix_run and RRv7 `routes.ts` file is that you can easily create functions to help you define routes following a custom convention
Here I made a simple crud helper that receives a resource name and give me all the routes
gist.github.com/sergiodxa/c7fc…
I wrote a tutorial on how to enable middleware in @remix_run's React Router v7.3.0 to intercept requests and enhance loaders and actions on both server and client.
I included an example session middleware that auto commits the session on every request