Advertisement · 728 × 90

Posts by Sergio Xalambri

Video

I was able to build a @remix.run v3 `lazy` function to lazy load components

The lazy loaded component retains the type of the props with an additional `fallback` prop to pass the JSX to render until it's loaded

Code: github.com/sergiodxa/re...

5 months ago 2 0 0 0
Post image Post image

Another @remix.run v3 example. This is how you can create custom components that allow the parent to listen to custom events.

Full code: github.com/sergiodxa/re...

5 months ago 4 2 0 0
remix-v3-examples/app/state-libs/legend-state.tsx at main · sergiodxa/remix-v3-examples Contribute to sergiodxa/remix-v3-examples development by creating an account on GitHub.

The code is here if you figure know more about Legend State and can figure out how to do that

github.com/sergiodxa/re...

5 months ago 1 0 0 0
Post image

Here you have, I tried to use the `observe` function but I was not sure how to stop observing the observable once the component is unmounted (the signal does that), the observable onChange works perfectly for this

5 months ago 1 0 1 0
Preview
a man in a suit and tie says " legen wait for it dary " while another man looks on ALT: a man in a suit and tie says " legen wait for it dary " while another man looks on

What is legend state?

5 months ago 0 0 1 0

Another @remix.run v3 + state management library example, now Stately.ai's xstate.

Define the machine once, create the actor and subscribe to updates in the setup scope, and get a snapshot or send events on the render scope.

Full code: github.com/sergiodxa/re...

5 months ago 3 1 0 0

Next on @remix.run v3 + state management libraries, I tried @preactjs.com Signals core package.

This requires to run the effect to subscribe to the signal inside this.queueTask, otherwise it tries to re-render before Remix did the first render.

Full code: github.com/sergiodxa/re...

5 months ago 3 1 0 1
Post image

I'm trying different state management libraries, common in React, that have a JS only core and see how they integrate with @remix.run v3.

I started with Redux Toolkit. Super simple and straightforward to setup and use.

Code here: github.com/sergiodxa/re...

5 months ago 4 1 1 1

In June we announced an open governance model for React Router.

Today, we are excited to welcome Sergio Xalambrí and @rossipedia.com to the React Router Steering Committee!

Both have made valuable contributions to Remix and React Router over the years, and we appreciate their feedback.

7 months ago 30 6 3 1
Preview
React Router OAuth2 Handbook Implement secure OAuth2 authentication in React Router and Remix apps with practical patterns.

The early bird for React Router OAuth2 Handbook is over, but there’s still a launch offer available.

🎁 The Complete Package has $50 off for the first 100 buyers.
🌍 PPP pricing is now active — for the book only.

go.sergiodxa.com/S4qaycD

10 months ago 5 0 0 0
Advertisement
Preview
React Router OAuth2 Handbook Implement secure OAuth2 authentication in React Router and Remix apps with practical patterns.

Want to dive deeper into how tokens work in OAuth2 + OIDC?

Learn how to use them correctly in your Remix or React Router app.

📘 Join the waitlist for the React Router OAuth2 Handbook:
👉 go.sergiodxa.com/x4HNprT

11 months ago 3 0 0 0

🪪 The ID Token’s audience is the Client Application.

It contains user identity info and is meant to be consumed by the client, not by the API or auth server. That’s why its aud claim matches the client’s ID.

11 months ago 1 0 1 0

🔄 The Refresh Token’s audience is the Authorization Server.

It’s the only one allowed to accept it and issue a new Access Token. This keeps refresh logic centralized and secure, preventing misuse by clients or other services.

11 months ago 0 0 1 0

🔑 The Access Token's audience is the Resource Server.

It’s the one that will validate and accept the token to give access to protected resources. This way, only the Resource Server can rely on it—it’s not meant for the client or the auth server.

11 months ago 0 0 1 0

In OAuth2 + OIDC, each token has a different audience:

🔑 Access Token → Resource Server
🔄 Refresh Token → Authorization Server
🪪 ID Token → Client App

Each audience ensures the token is used by the right party and for the right purpose.

11 months ago 1 1 1 0
GitHub - sergiodxa/remix-auth-openauth: A Remix Auth strategy to use with an OpenAuth.js issuer A Remix Auth strategy to use with an OpenAuth.js issuer - sergiodxa/remix-auth-openauth

I published a Remix Auth strategy for the new @sst.dev's OpenAuth.js identity provider

github.com/sergiodxa/re...

1 year ago 18 1 0 0

ClientLoader doesn’t have access to context, this is a server only thing, rossipedia has been asking for an equivalent client version for a long time

Client side you can define it once in a separate file and just import it

1 year ago 1 0 1 0
Advertisement

I think @kentcdodds.com build it, he should have the code

1 year ago 2 0 1 0

On the Remix server we have a bot that can create threads when you add a emoji to a message and automatically name the thread like "🧵 Thread for Dominik"

I use it a lot there to create them so I don’t think about the name

1 year ago 3 0 1 0

Most of that was already available before the standalone app, although the app is great, would be nice to have secure notes for things like API keys

1 year ago 0 0 1 0

Yes, you can create a group and share passwords there, you can have many groups too

1 year ago 2 0 0 0

Does this works with providers like GitHub, Google, Auth0, etc? From what I saw it seems it should since they use client id and client secrets?

1 year ago 1 0 1 0

I like the ideas it brings, specially ship less JS, but I'm not convinced the complexity is worth it, although I never tried it since I haven't used Next.js in years

I also don't like how it was approached, I always liked that React features were first tested at Meta with their scale, but not RSC

1 year ago 0 0 0 0

So you can, without Vite 6, already use the actual wrangler instead of the proxy?

1 year ago 0 0 1 0
Advertisement
Preview
GitHub - edgefirst-dev/starter-worker Contribute to edgefirst-dev/starter-worker development by creating an account on GitHub.

I have my own starter github.com/edgefirst-de..., alt ought it does more than just a base point

1 year ago 0 0 1 0

Cloudflare, previously Pages but now switching to Workers since it has all the nice things of Pages and more features

1 year ago 2 0 1 0

How to properly build UIs, accessibility, feature proposals for JS

1 year ago 6 0 0 0

Same, I dropped CamelCase for file names after my first time someone renamed fileName to FileName and it started to cause issues on some systems but not others

1 year ago 2 0 1 0

From that point, everything is an enhancement, scoped styles and interactivity with JS

1 year ago 0 0 0 0

I think starting with HTML-only would be a great way to make it declarative and work with progressive enhancement, in the absolute worst case you get an empty element, but if the template tag loaded (because it's in the document or imported) it will still render something

1 year ago 0 0 1 0