solidjs-async

Manage asynchronous data fetching in SolidJS with createResource and Suspense.

Updated Feb 12, 2026
One-click install
npx skills add https://github.com/IlyaGulya/claude-marketplace --skill solidjs-async
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: solidjs-async
Source: https://github.com/IlyaGulya/claude-marketplace/tree/main/plugins/solidjs/skills/solidjs-async
Command: npx skills add https://github.com/IlyaGulya/claude-marketplace --skill solidjs-async

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies asynchronous data fetching in SolidJS applications, managing loading and error states automatically and integrating seamlessly with Suspense for a smoother user experience.

Core Features & Use Cases

  • createResource: The primary primitive for handling asynchronous operations.
  • Suspense Integration: Automatically triggers Suspense boundaries for elegant loading states.
  • Error Handling: Provides robust mechanisms for catching and displaying errors.
  • Optimistic Updates: Enables immediate UI updates before network requests complete.
  • Use Case: Fetching user data from an API, displaying a list of products with loading indicators, or updating a shopping cart in real-time.

Quick Start

Use the solidjs-async skill to fetch data from the '/api/users' endpoint and display it within a Suspense boundary.

Frequently Asked Questions about solidjs-async

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

FAQPage Schema
How do I handle async data fetching in SolidJS?

Async data fetching in SolidJS is handled using the `createResource` primitive to manage API requests, loading states, and errors, while integrating with Suspense for declarative UI updates. This approach simplifies asynchronous operations.

How does Suspense work with SolidJS createResource?

Suspense integration with `createResource` automatically triggers Suspense boundaries during asynchronous operations, providing elegant loading states. When data is fetching, the boundary displays fallback content until the resource resolves.

Can I trigger conditional fetching based on source signals in SolidJS?

Conditional fetching based on source signals is fully supported. `createResource` can accept a source signal, automatically re-executing the fetcher function and updating the UI whenever the signal's value changes.

What is the best way to manage loading and error states for API requests in SolidJS?

The best way to manage loading and error states is using `createResource`, which automatically tracks API request status. It provides robust mechanisms for catching errors and integrates with Suspense for declarative UI updates.

Does SolidJS support optimistic updates for real-time UI changes?

SolidJS supports optimistic updates through `createResource` utilities, enabling immediate UI updates before network requests complete. This allows for real-time shopping cart modifications and instant user feedback.

How do I manually refetch data using createResource in SolidJS?

Manual refetching in SolidJS is supported by `createResource` utilities, allowing you to trigger data updates on demand. This is useful for refreshing user data lists or polling API endpoints for new information.