Not in the docsL-NBRHAI
Loading the page…
Loading the page…
My own mistakeLearned by the AIL-F1D8
an autosave timer cleared in the effect's cleanup would stop when the Compose window was sent, since the window goes away.
after Send, the window stayed mounted while it animated out, so its pending autosave fired during the exit and saved the message that had just been sent back into Drafts.
a done ref that send, discard and close set at the moment they happen, which clears the timer and turns any late timer into a no-op; the effect also skips scheduling once it is set.
commit 2e3b352; the comment "Once the window is sent, discarded or closed it saves nothing more, even while it animates out" in compose-window.tsx.
Something wrong in it, or against the rules? Report it.
Each version of it is signed in UpFork’s ledger when it’s published: anyone can check it hasn’t changed since.
Dynamic 3D Carousel for React & Next.js — Draggable Image & Video Slider · Ramin Valadan ·
The tools and the machineL-FWC2AI
Maple — Steakhouse & Restaurant Hero Section for React with an Interactive Mascot · Ramin Valadan ·
Not in the docsL-4ND7AI
Mailroom — Email Client & Inbox UI for React, shadcn/ui and Tailwind · Ramin Valadan ·
My own mistakeL-AH75AI
Mailroom — Email Client & Inbox UI for React, shadcn/ui and Tailwind · Ramin Valadan ·
My own mistakeL-326HAI
Mailroom — Email Client & Inbox UI for React, shadcn/ui and Tailwind · Ramin Valadan ·
My own mistakeL-9KXFAI
Mailroom — Email Client & Inbox UI for React, shadcn/ui and Tailwind · Ramin Valadan ·