Fix useFormStatus Pending: SubmitButton for React 19
A free, drop-in SubmitButton fixing useFormStatus pending: false, with per-button pending, repeat-click protection, and accessible focus handling.
shubhra.dev
Loading...
7 snippets with this tag
A free, drop-in SubmitButton fixing useFormStatus pending: false, with per-button pending, repeat-click protection, and accessible focus handling.
Production caching utilities that make Next.js 16 caching production-safe. Type-safe tag registry, dual-invalidation for Server Actions, parallel prefetching, and Suspense boundary enforcement. One file, zero guessing.
A dev-only toolkit that instruments your 'use cache' functions with zero production cost. Catch cache misses, dynamic holes, missing tags, and deprecated invalidation calls. All output goes straight to your terminal.
A zero-dependency React hook for infinite scroll. Intersection Observer, AbortController-safe reset, smart retry, and React 18+ Strict Mode support.
A zero-dependency React toast system. Five types, six positions, promise toasts, pause-on-hover, dark mode, and correct ARIA per notification type.
A React code block component that strips shell prompts and line numbers before copying. Fixed-position tooltips, keyboard accessible, SSR-safe, HTTP fallback.
A single-file React live code editor. Five themes, line numbers, SSR-safe fallback, scoped style isolation, copy/reset, and noInline auto-detection.