solid-router-actions

Define and manage Solid Router actions for form submissions and mutations.

Updated Jan 4, 2026
One-click install
npx skills add https://github.com/vallafederico/solid-ai-rules --skill solid-router-actions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solid-router-actions
Source: https://github.com/vallafederico/solid-ai-rules/tree/main/.claude/skills/solid-router-actions
Command: npx skills add https://github.com/vallafederico/solid-ai-rules --skill solid-router-actions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill simplifies handling data mutations and form submissions within SolidJS applications using the Solid Router library, providing clear patterns for managing state and user feedback.

Core Features & Use Cases

  • Define Mutations: Use the action() helper to create server-side functions for data manipulation.
  • Form Integration: Seamlessly connect forms to actions for POST requests, handling FormData.
  • Programmatic Calls: Invoke actions directly from your component logic using useAction.
  • Submission State: Track the pending, success, or error states of form submissions with useSubmission and useSubmissions.
  • Optimistic UI: Implement smooth user experiences by updating the UI optimistically before server confirmation.

Quick Start

Use the solid-router-actions skill to define a new action for submitting user feedback.

Frequently Asked Questions about solid-router-actions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle form submissions and data mutations in SolidJS?

Use the Solid Router `action()` helper to define server-side mutation functions and connect forms directly to handle POST requests and process FormData. This approach manages data manipulation and state tracking within SolidJS applications.

Can I invoke Solid Router actions programmatically instead of using form submissions?

Yes, you can invoke actions directly from component logic using the `useAction` hook. This allows programmatic action invocation for scenarios where standard form submissions are not suitable for your mutation requirements.

What is the best way to track pending and error states for SolidJS form submissions?

Track the pending, success, or error states of form submissions using the `useSubmission` and `useSubmissions` hooks. These utilities provide reactive state tracking for your Solid Router mutations.

How do I implement optimistic UI updates during a SolidJS mutation?

Implement optimistic UI by updating the interface optimistically before server confirmation arrives. This pattern leverages SolidJS reactivity alongside Solid Router's action API to ensure smooth user experiences during data mutations.

Do I need prior knowledge of SolidJS reactivity to use Solid Router actions?

Yes, understanding SolidJS reactivity and the Solid Router action API is required. Effective implementation of mutations, submission state tracking, and optimistic updates depends on this foundational reactivity knowledge.