paripsky's profile
Yonatan Paripsky@paripsky•Oct 27, 2025
370
Post cover image

Directives and the Platform Boundary

From tanstack.com•Oct 27, 2025•8m read time

JavaScript frameworks are increasingly introducing custom directives like 'use server', 'use client', and 'use cache' that resemble language features but lack standardization. These directives create confusion by appearing authoritative while being framework-specific, leading to portability issues, tooling complexity, and vendor lock-in. The piece argues for using explicit APIs with imports instead of directives, as APIs provide better provenance, versioning, composition, and type safety. Drawing parallels to past ecosystem challenges like TypeScript decorators, it advocates for clearer boundaries between framework behavior and platform semantics to prevent fragmentation.

1 Comment

Sort:

paripsky's user avatar
Yonatan Paripsky
@paripsky
Joined Oct 21. 2024
370

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard