DEV Community

Parsa J profile picture

Parsa J

Frontend developer building back-office tools with server-driven UI. Big on clean architecture, TypeScript, and writing about the craft. Currently shipping a dev post a day.

Location Istanbul - Turkey Joined Joined on  Personal website https://github.com/parsajiravand

Education

Master of IT

Pronouns

Parsa

Work

Senior frontend developer

`use()` Breaks the Rules of Hooks on Purpose. Here's the Catch.

`use()` Breaks the Rules of Hooks on Purpose. Here's the Catch.

5
Comments
6 min read

Want to connect with Parsa J?

Create an account to connect with Parsa J. You can also sign in below to proceed if you already have an account.

Already have an account? Sign in
Template Literal Types Explained: Catching Path Typos at Compile Time

Template Literal Types Explained: Catching Path Typos at Compile Time

5
Comments
6 min read
The negotiation doesn't start until there's an offer on paper

The negotiation doesn't start until there's an offer on paper

5
Comments
6 min read
Your WebSocket Reconnects Fine. The Messages It Missed Never Do.

Your WebSocket Reconnects Fine. The Messages It Missed Never Do.

5
Comments
7 min read
Next.js 16 use cache: remote vs use cache: private

Next.js 16 use cache: remote vs use cache: private

5
Comments
14 min read
TypeScript Type Narrowing: The Complete Guide

TypeScript Type Narrowing: The Complete Guide

5
Comments
12 min read
CSS Transitions Skip display: none. transition-behavior Fixes That.

CSS Transitions Skip display: none. transition-behavior Fixes That.

5
Comments 1
6 min read
TypeScript Can't Tell userId From orderId. Branded Types Can.

TypeScript Can't Tell userId From orderId. Branded Types Can.

5
Comments
5 min read
A Typo Widened My Generic Instead of Erroring. NoInfer<T> Fixes It.

A Typo Widened My Generic Instead of Erroring. NoInfer<T> Fixes It.

5
Comments
5 min read
NestJS Interceptor Order: Why Stacking Breaks Your Cache

NestJS Interceptor Order: Why Stacking Breaks Your Cache

5
Comments
14 min read
arr[i] Isn't Always There. noUncheckedIndexedAccess Says So.

arr[i] Isn't Always There. noUncheckedIndexedAccess Says So.

5
Comments
5 min read
Your switch forgets a case. Exhaustiveness checking catches it.

Your switch forgets a case. Exhaustiveness checking catches it.

Comments
5 min read
The raise was decided before you asked for it

The raise was decided before you asked for it

5
Comments
6 min read
I Deleted My Scrollbar Hacks. `scrollbar-color` Replaced Them.

I Deleted My Scrollbar Hacks. `scrollbar-color` Replaced Them.

5
Comments
6 min read
Next.js 16.3 error.js: retry vs reset Aren't Interchangeable

Next.js 16.3 error.js: retry vs reset Aren't Interchangeable

5
Comments
12 min read
TypeScript Utility Types: The Complete Guide

TypeScript Utility Types: The Complete Guide

6
Comments
12 min read
You're debouncing search input. `useDeferredValue` skips the timer.

You're debouncing search input. `useDeferredValue` skips the timer.

6
Comments 1
5 min read
setCustomValidity() Explained: Native Form Error Messages

setCustomValidity() Explained: Native Form Error Messages

5
Comments
4 min read
You're Leaking Memory With That Cache. WeakMap Fixes It.

You're Leaking Memory With That Cache. WeakMap Fixes It.

6
Comments 1
5 min read
Your Framework's Decorators Still Need `experimentalDecorators`

Your Framework's Decorators Still Need `experimentalDecorators`

5
Comments
5 min read
NestJS platform-node (12.3): The Adapter That Reorders Your Routes

NestJS platform-node (12.3): The Adapter That Reorders Your Routes

5
Comments
13 min read
NestJS APP_FILTER Scope: Why Your Global Filter Might Not Fire

NestJS APP_FILTER Scope: Why Your Global Filter Might Not Fire

9
Comments 1
13 min read
Your Sticky Header Is Hiding Anchor Links. `scroll-margin-top` Fixes It.

Your Sticky Header Is Hiding Anchor Links. `scroll-margin-top` Fixes It.

9
Comments 3
5 min read
I Was Shipping Five Font Files. One Variable Font Replaced Them All.

I Was Shipping Five Font Files. One Variable Font Replaced Them All.

8
Comments 1
6 min read
You're the new senior hire, and there's no ramp for that

You're the new senior hire, and there's no ramp for that

9
Comments 3
6 min read
My Duration Formatter Broke in French. Intl.DurationFormat Doesn't.

My Duration Formatter Broke in French. Intl.DurationFormat Doesn't.

7
Comments 2
6 min read
overflow: hidden breaks position: sticky. overflow: clip doesn't.

overflow: hidden breaks position: sticky. overflow: clip doesn't.

7
Comments 1
4 min read
Your `setTimeout(fn, 0)` Doesn't Run Next. `queueMicrotask` Does.

Your `setTimeout(fn, 0)` Doesn't Run Next. `queueMicrotask` Does.

5
Comments 1
5 min read
Next.js 16.4.5: How unstable_cache Leaked Data Across Root Params

Next.js 16.4.5: How unstable_cache Leaked Data Across Root Params

5
Comments 1
11 min read
Vue Teleport defer: The Target-Timing Bug Behind a Dozen Patches

Vue Teleport defer: The Target-Timing Bug Behind a Dozen Patches

8
Comments 1
12 min read
Stop Blaming `prefers-color-scheme` For Your Theme Flash

Stop Blaming `prefers-color-scheme` For Your Theme Flash

7
Comments
6 min read
Stop Writing JavaScript to Open Dialogs. `commandfor` Fixes It.

Stop Writing JavaScript to Open Dialogs. `commandfor` Fixes It.

7
Comments
5 min read
Stop Shipping Search Boxes With a Race Condition

Stop Shipping Search Boxes With a Race Condition

8
Comments 1
6 min read
You're Blocking Scroll by Default. `passive: true` Fixes It.

You're Blocking Scroll by Default. `passive: true` Fixes It.

6
Comments
5 min read
NestJS 12.2: Why validationError.target Is Now undefined

NestJS 12.2: Why validationError.target Is Now undefined

6
Comments
11 min read
Stop Hacking Base64 With btoa(). toBase64() Fixes It Natively.

Stop Hacking Base64 With btoa(). toBase64() Fixes It Natively.

10
Comments 1
5 min read
Running the meeting is a different job than being in one

Running the meeting is a different job than being in one

8
Comments
6 min read
getCurrentPosition() Has No Default Timeout. That's the Trap.

getCurrentPosition() Has No Default Timeout. That's the Trap.

7
Comments
5 min read
Your Canvas Is Freezing the Page. OffscreenCanvas Fixes That.

Your Canvas Is Freezing the Page. OffscreenCanvas Fixes That.

8
Comments 1
6 min read
Next.js 16.4 ensureStatic: Locking Routes Fully Static

Next.js 16.4 ensureStatic: Locking Routes Fully Static

7
Comments 1
11 min read
Vue provide/inject: Why You Should Never Skip readonly()

Vue provide/inject: Why You Should Never Skip readonly()

7
Comments
10 min read
I Deleted My Scroll-Lock Library's Ugly Hack. `scrollbar-gutter` Replaces It.

I Deleted My Scroll-Lock Library's Ugly Hack. `scrollbar-gutter` Replaces It.

7
Comments 2
6 min read
React Activity Component: The State Between Render and Remount

React Activity Component: The State Between Render and Remount

4
Comments 1
11 min read
Stop Hardcoding Color Variants. Relative Color Syntax Does It.

Stop Hardcoding Color Variants. Relative Color Syntax Does It.

7
Comments 1
7 min read
You're Writing Mouse and Touch Handlers. Pointer Events Does Both.

You're Writing Mouse and Touch Handlers. Pointer Events Does Both.

7
Comments
6 min read
NestJS 12: @Optional() Not Inherited by a Redeclared Constructor

NestJS 12: @Optional() Not Inherited by a Redeclared Constructor

9
Comments
14 min read
Stop Using a JS Masonry Library. CSS Grid Lanes Does It Natively.

Stop Using a JS Masonry Library. CSS Grid Lanes Does It Natively.

8
Comments
5 min read
font-display: swap Fixes Invisible Text. It Also Shifts Your Layout.

font-display: swap Fixes Invisible Text. It Also Shifts Your Layout.

8
Comments 1
6 min read
When saying no feels like volunteering to be next

When saying no feels like volunteering to be next

10
Comments 4
6 min read
Stop Calling form.submit(). Use requestSubmit() Instead.

Stop Calling form.submit(). Use requestSubmit() Instead.

9
Comments 1
5 min read
Next.js 16 updateTag vs revalidateTag: What Changed

Next.js 16 updateTag vs revalidateTag: What Changed

9
Comments
12 min read
Stop Writing JS to Detect a Stuck Header. `scroll-state()` Fixes It.

Stop Writing JS to Detect a Stuck Header. `scroll-state()` Fixes It.

8
Comments
5 min read
Vue v-for: The Directive Unmounted Hook Bug, Fixed in 3.5.41

Vue v-for: The Directive Unmounted Hook Bug, Fixed in 3.5.41

10
Comments
11 min read
You're Debouncing Scroll Wrong. requestAnimationFrame Fixes It.

You're Debouncing Scroll Wrong. requestAnimationFrame Fixes It.

9
Comments 2
5 min read
My Reducer's Switch Stopped Being Exhaustive. `as const` Fixed It.

My Reducer's Switch Stopped Being Exhaustive. `as const` Fixed It.

8
Comments
6 min read
Nuxt 4.6 nuxt/server: Why Mixing h3 Imports Throws NUXT_E8012

Nuxt 4.6 nuxt/server: Why Mixing h3 Imports Throws NUXT_E8012

9
Comments
14 min read
Your Custom Hooks Tear in React 18. `useSyncExternalStore` Fixes It.

Your Custom Hooks Tear in React 18. `useSyncExternalStore` Fixes It.

8
Comments
4 min read
NestJS 12 Lifecycle Hooks: The Order You Can't Assume

NestJS 12 Lifecycle Hooks: The Order You Can't Assume

8
Comments
12 min read
Stop Jamming Translate, Rotate, and Scale Into One `transform`

Stop Jamming Translate, Rotate, and Scale Into One `transform`

9
Comments
5 min read
Someone else got the promotion, and you're being told to wait

Someone else got the promotion, and you're being told to wait

9
Comments 1
6 min read
loading...