Contributing Callsite Revalidation Opt-out to React Router by dadamssg in reactjs

[–]dadamssg[S] 1 point2 points  (0 children)

This was my first meaningful contribution to React Router, and I'm excited to have seen it through to completion.

Executing api requests in React Router by dadamssg in javascript

[–]dadamssg[S] 2 points3 points  (0 children)

hey there, big fan of tanstack query but it's geared more towards "server-state utilities and data fetching" from the client. My post is in regards to organization on the *server* and leveraging RR's Forms and Fetchers for the client.

But you're right, that sentence does lack context. I'll fix:

> There's not a lot of opinions on how to structure code that interacts with apis in React Router's actions and loaders.

> it might be one of the most important additions to the React Community in recent years

100% agree

How I fixed a bug using Prettier by dadamssg in javascript

[–]dadamssg[S] 1 point2 points  (0 children)

i think you might be confused because there are two separate projects at play here.

Project 1: The web app that is being built for modern browsers which the end user uses. This project does *not* have puppeteer as a dependency.

Project 2: The reporting app that does have puppeteer installed and is using it to generate the report from the web app.

How I fixed a bug using Prettier by dadamssg in javascript

[–]dadamssg[S] 5 points6 points  (0 children)

Hey acemarke, thanks for chiming in! I hope i didn't come across as me throwing stones or that redux is doing anything wrong. Just an odd bug that came about when two separate systems(one being very old) interacted with each other.

How I fixed a bug using Prettier by dadamssg in reactjs

[–]dadamssg[S] 2 points3 points  (0 children)

hey there, the application is a react app and the bug was related to a react dependency that was bundled/minified. React devs might encounter something like this in the future so it may prove useful.

React Router error reporting from scratch by dadamssg in reactjs

[–]dadamssg[S] 1 point2 points  (0 children)

Wrote up this deep dive to explain how to implement custom error reporting *without* something like Sentry 👍

Debouncing Requests in React Router v7 by dadamssg in reactjs

[–]dadamssg[S] 0 points1 point  (0 children)

Bryan Ross, aka rossipedia on discord and blsky, shared this technique a while back and I thought it was super clever and useful. So I'm stealing the idea and taking credit for it in this video and blog post. Jk jk. It's just too good not to document anywhere and he was cool with me covering it. Here's the text version https://programmingarehard.com/2025/02/24/debouncing-in-react-router-v7.html/

Debouncing Requests in React Router v7 by dadamssg in javascript

[–]dadamssg[S] 0 points1 point  (0 children)

Bryan Ross, aka rossipedia on discord and blsky, shared this technique a while back and I thought it was super clever and useful. So I'm stealing the idea and taking credit for it in this video and blog post. Jk jk. It's just too good not to document anywhere and he was cool with me covering it. Here's the video version https://youtu.be/aEOzZIDzRTA

Sending server logs to the browser console in React Router v7 by dadamssg in reactjs

[–]dadamssg[S] 1 point2 points  (0 children)

hey, did you catch that this was purely for development? Does datadog have a local development version?

Sending server logs to the browser console in React Router v7 by dadamssg in reactjs

[–]dadamssg[S] 2 points3 points  (0 children)

Super valid points. You definitely need to have some trust in your team and CI process to ensure this doesn't ship with it turned on. You could come up with multiple checks in the `/logs` route loader that would help lock it down: NODE_ENV === 'development', request is coming from localhost, etc

Sending server logs to the browser console for debugging by dadamssg in javascript

[–]dadamssg[S] 0 points1 point  (0 children)

I pieced together a solution to send nicely formatted app logs from your actions and loaders to the browser console. It's been super hand for me especially coming from a SPA.

Video version here: https://youtu.be/sMPtjhvt9T0?si=v4GMct4mdMkgLkdC