Advertisement ยท 728 ร— 90

Posts by Luca Barone

not sure if it ticks all the points, but I'm happily using PandaCSS.

You should trying it.

2 months ago 3 0 1 0

Btw I want to try ts-go myself on an TS repo, @tkdodo.eu how much is breaking?

2 months ago 0 0 0 0

dunno, maybe ts-go has different limits?

2 months ago 1 0 1 0

if I recall, it happens with tsc also, @dogpawhat.tech is right

2 months ago 0 0 1 0

I got bitten by that, all composition props like "asChild", "as" or the "render" prop from ariakit.org/guide/compos... potentially soffer from this.

At least writing good, accessible integration tests you can catch those a bit more.

2 months ago 0 0 0 0

I'm recently tinkering on the topic myself, and why not a render prop pattern?

3 months ago 1 0 1 0

Let's just vibe code a new engine

5 months ago 1 0 0 0

maybe we just need to learn better how to guide Claude, but personally, it stress me out a bit every time I do an attempt like this

5 months ago 0 0 1 0

nice article, but made me think that we are not ready enough for vibe coding, all these errors, cannot avoid thinking of that an old research on github issues and some human thinking would have wasted less energy and solved the problem earlier (yes I know the point of the article!)

5 months ago 1 0 1 0

Oh ok so potentially the ref gets refreshed too often, but I guess the latest render its not discarded, I'm wondering if it's still better to use a useLayoutEffect in this case

8 months ago 1 0 0 0
Advertisement

to my eyes updating the ref on render its ok, because its just an assignment operation done on a the ref value so I don't think anything else is needed.

8 months ago 1 0 1 0

I've done a PoC with the sentry useHotKeys hook and using my useLiveRef hook copied from @ariakit.org (github.com/ariakit/aria...)

It works but then I discovered that the original code from ariakit uses a useLayoutEffect, now I'm curious if I'm actually doing something harmful

8 months ago 1 0 1 0

Mmm I Remember to have done this in a case, I'll check it later

8 months ago 1 0 1 0

Why not just update the ref directly on render? Instead of taking advantage of a useEffect?

8 months ago 1 0 1 0

Extra files does not mean extra workers spawned by vitest?

10 months ago 1 0 2 0
Ariakit - Toolkit for building accessible UIs Lower-level component library for building accessible higher-level UI libraries, design systems and web applications with React.

ariakit.org, ark-ui.com

10 months ago 0 0 0 0
Post image
11 months ago 2 0 1 0

I'm sure that I just need more practise on that, the project where I tried it is also custom and a bit convoluted, with client / backend folder, api docs folder, tests, stories files, mocking system, etc. etc.

11 months ago 3 0 0 0

I tried knip recently feels like I need to take a certification only for the config ๐Ÿ˜†

11 months ago 1 0 1 0
Advertisement

just use something like panda-css.com and enable typesafety

1 year ago 0 0 0 0

You have taken some Gorgonzola, nice move!

1 year ago 0 0 0 0

yeah agreed, I think it may be useful only for the development mode related mocks

1 year ago 1 0 0 0

this would be extremely cool! I've tried to do it previously in my codebases, but it always ended up a little mess

1 year ago 0 0 1 0
Documentation - Mapped Types Generating types by re-using an existing type.

If I understand correctly, what you need is a mapped type in combination of a generic function type: www.typescriptlang.org/play/#code/G...

1 year ago 1 0 1 0
Post image Post image

One of the reasons I started developing Waku waku.gg is to experiment with Jotai and RSC. I'm proud of the first PoC of Waku/Jotai integration. It's still very limited, and we need to explore more, but for me, it's a great milestone.

Demo: stackblitz.com/edit/github-...

1 year ago 35 3 0 1
Preview
Standard Schema A common interface for TypeScript validation libraries

BIG DAY ๐Ÿ˜‡

Introducing Standard Schema! Itโ€™s a specification for a standard interface to be implemented by TypeScript schema libraries. The goal is to make it easier for frameworks and tools to accept user-defined schemas, without writing separate adapters for different libraries.
standardschema.dev

1 year ago 308 52 8 10
Advertisement

It's sad that the proposal seems stuck ๐Ÿ˜ข

1 year ago 0 0 0 0
<Button type="button" as={<a href="/" />}>
        Click me
      </Button>

<Button type="button" as={<a href="/" />}> Click me </Button>

like that:

1 year ago 0 0 0 0

We use the render prop pattern inspired from @ariakit.org to render the button as links and viceversa

1 year ago 0 0 1 0

Just wow ๐Ÿ˜ฎ

1 year ago 0 0 0 0