's Avatar

@oljimenez

38
Followers
89
Following
61
Posts
31.10.2024
Joined
Posts Following

Latest posts by @oljimenez

PDFG

17.06.2025 20:47 👍 0 🔁 0 💬 0 📌 0

I need a way to make it work even on frameworks like Nextjs that does SPA like navigation.

31.05.2025 01:32 👍 1 🔁 0 💬 1 📌 0

One thing i always tried to learn when using React

How do i fire an action when a page load? Should i use "load" event from browser?

Somehow in every codebase i worked people do this on a useEffect with no dependencies, and i knew that's wrong, but i never knew a better way

What do you recommend?

31.05.2025 01:29 👍 0 🔁 0 💬 1 📌 0

🤯

22.05.2025 15:31 👍 0 🔁 0 💬 0 📌 0

I'm talking about a tree of React code. For example

```tsx
<SomeComponent>
<OtherComponent/>
</SomeComponent>
```

Who's the Server Component?

22.05.2025 09:24 👍 0 🔁 0 💬 1 📌 0

I really think the directives approach is the best one in terms of composition and splitting bundle.

But there's a subject that i think everyone has been annoying about

By looking a React tree, how do you know what components are client or server or hybrid?

Naming?

22.05.2025 08:15 👍 1 🔁 0 💬 1 📌 0

Imagine a LLM tool like v0 or something, that receives your custom Design System, but all components have already integrated the business logic.

From client to server, with React we have it all to solve the problem.

21.05.2025 09:03 👍 0 🔁 0 💬 0 📌 0

So I'm imagining this for example.

We build components for the LLM not for ourselves, and then give those tools (LLM + React Components Design System) to the marketing team so they can build whatever they want.

It's exciting!!!

And with RSC, we can give them full stack components!!!

21.05.2025 09:01 👍 0 🔁 0 💬 1 📌 0

I don't think we're going to stop programming any time soon. AI is just not there, can't think at all, can't create new ideas.

But one thing that is possible may be how to build UI interfaces.

>

21.05.2025 08:58 👍 3 🔁 0 💬 0 📌 0

I literally see a lot of hate around RSC without ever understanding them right.

It's a little sad, because they're really powerful.

I guess time will make them understand.

13.04.2025 02:23 👍 1 🔁 0 💬 0 📌 0

It's a cool type, but i don't see a use case for that type 😅

08.04.2025 14:48 👍 2 🔁 0 💬 0 📌 0
Heathcliff is at the head of a line of cats waiting for a catnip vending machine in the middle of the woods at night. A watching owl says "It's not legal in this state."

Heathcliff is at the head of a line of cats waiting for a catnip vending machine in the middle of the woods at night. A watching owl says "It's not legal in this state."

28 Mar 2025

28.03.2025 19:21 👍 448 🔁 61 💬 2 📌 5

One advantage of this approach it's that it's very simple to do.

Just a class with less than 200 lines of code.

You have fully infered errors and if you use it more in your code, you see a stack of all possible errors in a type safe way.

Yeah, we got typesafe server errors all the way to RQ hooks

20.03.2025 14:02 👍 0 🔁 0 💬 1 📌 0

Don't get me wrong, i use JS, well TS.

And i know it's normal to throw errors and then catch them in another layer or not.

But i never meet someone who likes that strategy, that's all.

Usually for my projects i use a custom wrapper, similar to "never-throw" but even more simpler in my opinion.

20.03.2025 14:00 👍 0 🔁 0 💬 1 📌 0

Sorry, I haven't met anyone who liked the way JS handles errors.

20.03.2025 12:42 👍 0 🔁 0 💬 1 📌 0

Is this sarcastic post?

20.03.2025 12:20 👍 0 🔁 0 💬 1 📌 0

It can't because there's not much public codebases that use Arktype, so no much data to train the models.

17.03.2025 16:53 👍 1 🔁 0 💬 1 📌 0

@ssalbdivad.dev is the goat 🐐

17.03.2025 12:44 👍 2 🔁 0 💬 1 📌 0
Post image

One question about useEffect cases? How about this? Can i remove the useEffect from this hook?

It's a good pattern to use useEffect in hooks and declare kinds of events so people avoid using it in components?

13.03.2025 08:48 👍 2 🔁 0 💬 2 📌 0

Or maybe it's automatic if all the data inside of the <Suspense> still be in cache?

13.03.2025 05:12 👍 0 🔁 0 💬 0 📌 0

Interesting, so how i will decide when i want that <Suspense> part to be cached (static) or not (dynamic) in future requests after the first one?

13.03.2025 05:10 👍 0 🔁 0 💬 2 📌 0

That's goot to hear. So i've some hope.

Thanks for everything you do.

13.03.2025 05:08 👍 1 🔁 0 💬 0 📌 0

One question, is there any comparative of popular validation libraries TS performance?

13.03.2025 04:33 👍 0 🔁 0 💬 1 📌 0

So I'm trying to find a way to in ISR without statics params, that first render make of use of Streaming, but the following be Static page.

Is this possible? Maybe in the future?

Any idea about this?

13.03.2025 04:20 👍 0 🔁 0 💬 1 📌 0

Then next users will receive the a Static page.

But what happenes when that first SSR render is too slow? Like 5 seconds?

If i tried to use instead <Suspense> to make the users move to a new page and see a squeleton or something, now i lost every static benefits.

/continue

13.03.2025 04:18 👍 1 🔁 0 💬 1 📌 0

@timneutkens.bsky.social @storyhb.com

Hi, sorry for the tag.But i wanna make some question about Nextjs ISR + Streaming

I'm trying to achieve some way the following

When using ISR and not declaring statics params, in the first time Nextjs uses SSR, then save the static part in the CDN

/continue

13.03.2025 04:15 👍 1 🔁 0 💬 1 📌 0

Why do you always forget to mention the React Compiler? It's not FGR but it solves the majority of problems.

23.01.2025 14:05 👍 1 🔁 0 💬 1 📌 0

The problem i see, is that if the onSuccess is another asynchronous call, this will make the loading state wait longer, so I think it should depend on the use case.

21.01.2025 15:34 👍 1 🔁 0 💬 1 📌 0

I forgot the dependency array :)

20.01.2025 15:35 👍 2 🔁 0 💬 1 📌 0

How do you translate a onSuccess callback of v4 to v5?

The way i do it is adding a onSuccess callback to the hook and then.

`
useEffect(()=>{
if(onSuccess && queryData){
onSuccess(queryData)
}
})
`

20.01.2025 15:34 👍 1 🔁 0 💬 2 📌 0