Sign in

XiNiHa

@xiniha.dev
302 followers 365 following 124 posts

FE/DX Engineer / 🇰🇷 / xiniha.dev

PostsRepliesMedia
XiNiHa @xiniha.dev · 06/06/2025
I always did this through a theme-based approach like below, but the shortcuts-based approach looks much simpler! Not sure if it's also possible to block the usage of arbitrary z-indexes with shortcuts-based approach though 😅
000
XiNiHa @xiniha.dev · 21/04/2025
Looks expensive indeed 😂
010
XiNiHa @xiniha.dev · 29/03/2025
Ooh, @zed.dev meets @cap.so? 🚀
010
XiNiHa @xiniha.dev · 24/01/2025
Today I discovered a neat utility called ts-macro, and got an idea for creating a plugin with Relay support, so I made one! The plugin adds support for automatically inferring the operation/fragment type and passes it to Relay utils. It's very convenient! github.com/XiNiHa/ts-ma...
000
XiNiHa @xiniha.dev · 30/12/2024
Actually I was referring to these, and these rules work for implicit anys 😋
000
XiNiHa @xiniha.dev · 11/12/2024
I was somewhat scared about porting useSubscription() overestimating its complexity..... and then found that the implementation was about 10 lines XD
020
XiNiHa @xiniha.dev · 10/12/2024
Just found a bug in Zed (actually in its dependency) This one was somewhat tricky to debug 😂
000
XiNiHa @xiniha.dev · 10/12/2024
😵‍💫
010
XiNiHa @xiniha.dev · 08/12/2024
btw, it seems like publishing a package right after the NPM maintenance is not a good idea 😅
010
XiNiHa @xiniha.dev · 08/12/2024
Just released Solid Relay 0.2.0: - Mutations with createMutation() - Fragment refetches with createRefetchableFragment() - Imperative queries with loadQuery() and createQueryLoader() - Reliability issue fixes for createLazyLoadQuery() Now it does something interesting!
110
XiNiHa @xiniha.dev · 08/12/2024
🙄
000
XiNiHa @xiniha.dev · 29/11/2024
Writing Rust procedural macros is pretty fun to do, although it sometimes drives me crazy 😇😇😇
010
XiNiHa @xiniha.dev · 22/11/2024
😵‍💫
010
XiNiHa @xiniha.dev · 19/11/2024
I... don't like this
020
XiNiHa @xiniha.dev · 19/11/2024
😋
040
XiNiHa @xiniha.dev · 14/11/2024
Never expected to see calling this icon "chevron pipe" 😂
A screenshot of an icon from Tabler Icons icon pack, named chevron-right-pipe, that looks like >| and is mostly used for skip buttons
020
XiNiHa @xiniha.dev · 13/11/2024
Tempted to do this
Screenshot from State of JS 2024 survey, marking React as "Used it" with "Negative experience"
120
XiNiHa @xiniha.dev · 13/11/2024
TIL: `as const satisfies T` instead of `as const` can be used to prevent result types from having `readonly` modifiers 🤯
A Stack Overflow answer demonstrates the usage of `as const satisfies T` to remove `readonly` modifiers from resulting types that are inferred with `as const`. Following TypeScript code is included:

// To get a mutable array/object type
const arr = [
    {a: 1} satisfies Record<string, number>,
] as const satisfies Record<string, number>[];
type Arr = typeof arr;

const arrTest1: [{a: number}] = arr;

// To get a mutable tuple type
const tuple = ['a', 'b'] as const satisfies string[];
type Tuple = typeof tuple[number];

const tupleTest1: ('a' | 'b')[] = tuple;
010
XiNiHa @xiniha.dev · 06/11/2024
I like this scrolling behavior of the navbar 😋 should dig into the code soon
030