Lightlines
By next-safe-action

safe-action-hooks

next-safe-action1.2k installs

Build React forms that handle overlapping saves.

What it does

Guides the integration of next-safe-action React hooks for server actions, forms, and optimistic updates.

When to use it

Use when executing next-safe-action actions from React client components or building optimistic UI, including queued and serialized mutations.

How to use it

It changes how the agent selects and integrates next-safe-action hooks for React client components, forms, and optimistic updates.

What you provide

  • An existing project

Latest review

What you need · 2

The guide uses hooks imported from the next-safe-action package.

The optimistic action hook wraps React.useOptimistic.


Access · 0

No additional actions listed.