▲ 5 r/react

Stop wrapping your entire React 19 app in an AuthContext just to prevent layout flashes

With React 19 and server-first architectures, the layout flash problem is entirely a server-client synchronization issue. Here is a better architectural pattern to keep your client bundle clean and eliminate flashes:

  1. Leverage the Server-First Gate: Validate the session cookie directly at the layout/page layer on the server (or via middleware). If unauthenticated, trigger a server-side redirect before a single byte of client-side Javascript is parsed or rendered.
  2. Pass Initial State Down: Instead of an active client-side fetch on mount, pass the server-validated session data down to interactive client components as a primitive prop or via streaming using React 19's <Suspense> and the use() hook.
  3. Isolate Interactivity: Keep your root and main layout branches as pure Server Components. Push client-side auth state hooks (like listening for WebAuthn passkey ceremonies or handling OTP timers) down into isolated "leaf" components or form action wrappers where the interactivity actually belongs.

By treating authentication as a data-routing primitive on the server rather than an event-listener loop on the client, you completely eliminate layout shifting while dropping your initial JS footprint to zero.

reddit.com
u/IterateFast — 7 days ago

How are you elegantly managing the AbortController when mixing Conditional UI with alternative auth fallbacks?

I've been working on our custom WebAuthn implementation, trying to get Conditional UI (Passkey autofill) to look completely seamless alongside our fallback methods (Magic Links and OTP). The frontend side for conditional mediation is clean enough until you hit user intent switches. If the user loads the page, the browser immediately spins up an active WebAuthn request listening on the username field via an AbortController.

But if the user decides to ignore the biometric prompt and types their email to request an OTP instead, handling that transition smoothly gets incredibly clunky.

If I don't explicitly call abort() on the active signal, triggering a secondary event or navigating can cause the browser to freeze or throw silent, unhandled DOMExceptions (AbortError). On the flip side, if I abort it too aggressively on input focus, it completely defeats the point of the autofill dropdown staying visible while they type.

For anyone who has shipped a production-grade passkey UX:

  • Do you keep the conditional UI mediation active the entire time until the form is submitted via an alternative method?
  • Or do you explicitly kill the signal the second a user interacts with a secondary auth input field (like a 'Send Magic Link' button)?

Curious to hear how teams are structuring their authentication state machines to handle this gracefully without triggering jarring UI flashes or console errors.

reddit.com
u/IterateFast — 7 days ago
▲ 86 r/react+1 crossposts

Is anyone else tired of the "Everything must be a microservice" mindset in Indian startups?

I've been talking to a few founders and senior devs recently about scaffolding a new SaaS product, and it feels like everyone is blindly copying enterprise architectures before they even hit 100 users.

People are spinning up independent Node/Spring Boot microservices, setting up separate Docker containers, and wrestling with Kubernetes configs just to handle basic operations like user onboarding, multi-tenant DB isolation, and auth fallbacks.

Why has the monolithic approach become so taboo?

If you are building on a modern stack like Next.js with TypeScript and a solid relational DB (PostgreSQL/SQL), you can scale a clean monolith incredibly far using optimized Edge runtimes and server actions. It eliminates network latency between services, keeps the codebase unified, and doesn't require a dedicated DevOps engineer just to deploy a hotfix.

Are teams actually seeing a performance bottleneck that justifies the microservice overhead early on, or is it just CV-driven development to look "enterprise-ready"? How are you structuring your SaaS/product backends in 2026?

reddit.com
u/IterateFast — 7 days ago

Is anyone else realizing that writing long PRDs is completely pointless now?

I spent a chunk of this week reviewing a massive, detailed PRD that honestly could have been a 3-bullet-point prompt. With how fast engineering can spin up prototypes using AI tools, spending days formatting a textbook product requirement document feels incredibly outdated. Half the time, the team doesn't even read past the first page anyway. It feels like the actual job has shifted away from "writing the perfect spec" to just mapping edge cases and dealing with downstream data mess. The second we pass a basic brief over, dev tools can scaffold the UI and logic instantly.

Are you guys still forcing yourselves to write full-length PRDs just to satisfy corporate processes, or have you shifted entirely to dumping wireframes and basic outcome goals straight into a brief/Jira ticket? How are you handling this without losing alignment with engineering?

reddit.com
u/IterateFast — 7 days ago

Is anyone actually using RICE for prioritization, or are we all just making up numbers?

I was looking over our upcoming roadmap today and realized how much time we waste messing around with RICE scores. Let's be honest, the whole framework feels like a joke. You want a feature to get picked? You just bump the "Confidence" score from 50% to 80% or guess a higher "Impact" number until the spreadsheet gives you the answer you wanted anyway.

Half the time, an executive swoops in with a pet project, and we just reverse engineer the scores to make it look official for the engineering team.

If you’re at a company that actually moves fast, how do you decide what to build next? Because spending hours arguing over whether a feature is a "2" or a "3" for impact feels like a massive waste of time.

reddit.com
u/IterateFast — 9 days ago

Is anyone actually using RICE for prioritization, or are we all just making up numbers?

I was looking over our upcoming roadmap today and realized how much time we waste messing around with RICE scores. Let's be honest, the whole framework feels like a joke. You want a feature to get picked? You just bump the "Confidence" score from 50% to 80% or guess a higher "Impact" number until the spreadsheet gives you the answer you wanted anyway.

Half the time, an executive swoops in with a pet project, and we just reverse engineer the scores to make it look official for the engineering team.

If you’re at a company that actually moves fast, how do you decide what to build next? Because spending hours arguing over whether a feature is a "2" or a "3" for impact feels like a massive waste of time.

reddit.com
u/IterateFast — 9 days ago
▲ 2 r/react

Is it just me, or is the WebAuthn / Passkey spec an over-engineered nightmare to implement from scratch?

I’ve spent the last week trying to roll native Passkey support into our database/auth schema without pulling in a massive external provider. I thought it would be a simple browser API call, but holy crap. Decoding the attestationObject from raw binary array buffers, parsing CBOR payload maps in Node, extracting the raw COSE public key format, and mapping the credential IDs safely to a SQL schema, it feels like you need a PhD in cryptography just to let a user touch their FaceID.

Has anyone successfully built a lightweight, pure TypeScript handler for this without exploding their client-side bundle or relying on a bloated third-party library? How are you handling fallback when a device drops cross-platform WebAuthn support?

reddit.com
u/IterateFast — 9 days ago

Is it just me, or is the WebAuthn / Passkey spec an over-engineered nightmare to implement from scratch?

I’ve spent the last week trying to roll native Passkey support into our database/auth schema without pulling in a massive external provider. I thought it would be a simple browser API call, but holy crap. Decoding the attestationObject from raw binary array buffers, parsing CBOR payload maps in Node, extracting the raw COSE public key format, and mapping the credential IDs safely to a SQL schema, it feels like you need a PhD in cryptography just to let a user touch their FaceID.

Has anyone successfully built a lightweight, pure TypeScript handler for this without exploding their client-side bundle or relying on a bloated third-party library? How are you handling fallback when a device drops cross-platform WebAuthn support?

reddit.com
u/IterateFast — 9 days ago

Is it just me, or is the WebAuthn / Passkey spec an over-engineered nightmare to implement from scratch?

I’ve spent the last week trying to roll native Passkey support into our database/auth schema without pulling in a massive external provider. I thought it would be a simple browser API call, but holy crap. Decoding the attestationObject from raw binary array buffers, parsing CBOR payload maps in Node, extracting the raw COSE public key format, and mapping the credential IDs safely to a SQL schema, it feels like you need a PhD in cryptography just to let a user touch their FaceID.

Has anyone successfully built a lightweight, pure TypeScript handler for this without exploding their client-side bundle or relying on a bloated third-party library? How are you handling fallback when a device drops cross-platform WebAuthn support?

reddit.com
u/IterateFast — 9 days ago

Is it just me, or is the WebAuthn / Passkey spec an over-engineered nightmare to implement from scratch?

I’ve spent the last week trying to roll native Passkey support into our database/auth schema without pulling in a massive external provider. I thought it would be a simple browser API call, but holy crap. Decoding the attestationObject from raw binary array buffers, parsing CBOR payload maps in Node, extracting the raw COSE public key format, and mapping the credential IDs safely to a SQL schema, it feels like you need a PhD in cryptography just to let a user touch their FaceID.

Has anyone successfully built a lightweight, pure TypeScript handler for this without exploding their client-side bundle or relying on a bloated third-party library? How are you handling fallback when a device drops cross-platform WebAuthn support?

reddit.com
u/IterateFast — 9 days ago
▲ 5 r/Habits

Is app fatigue killing our ability to build new habits?

I was looking at the Productivity folder on my phone today and realized it’s basically a graveyard. Every time I try to start a daily habit, like journaling or tracking something, it dies the same way. I download a nice app, use it for three days, and then forget it exists because opening a dedicated app feels like a chore.

It feels like we’ve over-engineered everything. Why do I need a whole separate ecosystem and a flashy UI just to write down a few thoughts? If I'm already spending hours inside WhatsApp or other chat apps every day, I wish my habits just lived there.

Is anyone else experiencing major app fatigue, or am I just lazy? Do you think simple utility tools should stop trying to be standalone apps?

reddit.com
u/IterateFast — 9 days ago
▲ 54 r/agile

Why is Indian tech management so obsessed with tracking hours instead of shipped code?

Looking at the leaked emails and toxic office notices in reddit, it’s depressing how backward our tech culture is.

We are in an industry built on logic and automation, yet management treats developers like assembly-line factory workers. Companies will track your login hours down to the minute or micromanage your lunch breaks, but completely ignore the actual quality of the product being built. You can ship a week's worth of clean code in three days, but HR will still flag you if your mouse wasn't jiggling for 9 hours straight.

It feels like our corporate culture values compliance over competence. We talk big about building the future of tech, but the ground reality is just insecure micromanagement.

For the devs here:

  • Why do you think Indian managers are so deeply obsessed with screen time over actual output?
  • Have you found any Indian tech company that actually treats you like an adult and judges you solely on what you ship?
reddit.com
u/IterateFast — 9 days ago

Why is Indian tech management so obsessed with tracking hours instead of shipped code?

Looking at the leaked emails and toxic office notices in reddit, it’s depressing how backward our tech culture is.

We are in an industry built on logic and automation, yet management treats developers like assembly-line factory workers. Companies will track your login hours down to the minute or micromanage your lunch breaks, but completely ignore the actual quality of the product being built. You can ship a week's worth of clean code in three days, but HR will still flag you if your mouse wasn't jiggling for 9 hours straight.

It feels like our corporate culture values compliance over competence. We talk big about building the future of tech, but the ground reality is just insecure micromanagement.

For the devs here:

  • Why do you think Indian managers are so deeply obsessed with screen time over actual output?
  • Have you found any Indian tech company that actually treats you like an adult and judges you solely on what you ship?
reddit.com
u/IterateFast — 9 days ago
▲ 14 r/ProductOwner+1 crossposts

Is the "technical" part of Product Management overhyped? Can it just be learned on the job?

I’ve been seeing a huge debate lately around how much technical knowledge a PM actually needs versus their soft skills.

On paper, job descriptions love to demand a CS background, data analytics, and deep architecture knowledge. But in reality, it feels like you can learn intermediate SQL, how to read an API doc, or how to navigate Mixpanel/GA4 on the go, over a few weekends. Hard skills have a clear syllabus.

On the flip side, things like leading an engineering team without actual authority, saying "no" to aggressive stakeholders without burning bridges, and translating chaotic requirements into clarity feel impossible to teach via a textbook.

For the PMs here:

  • How much of the "technical" side did you actually have to know on day one, vs. what you just picked up on the job?
  • If you had to pick, are elite soft skills significantly more important than technical skills for long-term PM success?

Would love to hear from both technical and non-technical PMs on where the actual bottleneck is.

reddit.com
u/IterateFast — 13 days ago

Trying to start journaling but worried about consistency. Do apps or physical journals have a better success rate?

Every time I've tried to start journaling in the past, I write for few days and then completely forget about it. I want to try again, but I want to set myself up for success this time.

People who journal daily, what is your setup?

  • If you use a physical book, how do you deal with the friction of having to carry it around or finding the "perfect" time to sit down and write?
  • If you use an app/digital tool, does it actually feel personal, or does it just feel like another screen task or chore?

I just want to choose whichever method makes it easiest to build the habit. Would love to hear your pros and cons for both.

reddit.com
u/IterateFast — 14 days ago
▲ 1 r/ProductMgmt+1 crossposts

4.5 YOE Technical Writer acting as a de facto PM. Can I skip the MBA to make the official title transition to PM?

Hey everyone,

I’ve been a Technical Writer at a major Reliance-backed commerce platform for a few years, but my actual day-to-day has completely evolved into Product Management.

My manager essentially let me run wild as a de facto PM: I’ve owned a merchant mobile app from 0 to 1, built an AI commerce agent, shipped 6 independent side-products (one hit #11 on Product Hunt, another has 2k+ organic MAU), and I even co-run a part-time product agency on weekends managing a small team of interns and devs. I write the PRDs, define roadmaps, run SQL, and look at Mixpanel/GA4 daily.

Despite the metrics, my official corporate designation is still "Technical Writer."

  1. How do I beat the "title anchor" when applying for official PM roles? Recruiters see "Writer" and skip the resume, even though the bullet points are pure product delivery.
  2. Is an MBA absolutely mandatory in this market to pivot, or is my 0-to-1 shipping experience enough to clear the screening?

Any tips from people who transitioned from non-traditional roles without a Tier-1 MBA?

reddit.com
u/IterateFast — 14 days ago