tanstack-query

Fetch and mutate data in Svelte apps using TanStack Query and Tauri hooks.

8|1|Updated Dec 24, 2025
One-click install
npx skills add https://github.com/HopeArtOrg/hope-re --skill tanstack-query-hopeartorg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tanstack-query
Source: https://github.com/HopeArtOrg/hope-re/tree/main/.gemini/skills/tanstack-query
Command: npx skills add https://github.com/HopeArtOrg/hope-re --skill tanstack-query-hopeartorg

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @tanstack/svelte-query, @tauri-apps/api, and includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the management of data in Svelte applications by providing convenient hooks for data fetching and mutation using TanStack Query and Tauri.

Core Features & Use Cases

  • Data Fetching: Leverage TanStack Query for efficient data retrieval with caching and revalidation.
  • Data Mutation: Use TanStack Query's mutation hooks for performing data updates in your Svelte app.
  • Use Case: Quickly integrate data fetching and updating functionality into your Svelte application for a seamless user experience.

Quick Start

Integrate the tanstack-query skill into your Svelte project by importing and using the useMyData and useMyAction hooks.

Frequently Asked Questions about tanstack-query

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

FAQPage Schema
How do I manage data fetching and mutation in a Svelte app with Tauri?

Data fetching and mutation in a Svelte app with Tauri is managed using TanStack Query, which provides reusable hooks for handling data states and performing asynchronous retrieval and updates.

What is the best way to handle data caching and revalidation in Svelte applications?

Handling data caching and revalidation in Svelte applications is best achieved by leveraging TanStack Query, which automatically manages caching and revalidation for efficient data retrieval.

Do I need TanStack Query and Tauri to use these Svelte data hooks?

Yes, you need both TanStack Query and Tauri to use these Svelte data hooks, as the full functionality of the provided data fetching and mutation hooks depends on these two dependencies.

How to integrate data updating functionality into a Svelte application?

To integrate data updating functionality into a Svelte application, use TanStack Query's mutation hooks to perform data updates, supporting both synchronous and asynchronous data actions.

Can I use TanStack Query for synchronous data retrieval in Tauri Svelte apps?

Yes, TanStack Query can be used for synchronous data retrieval in Tauri Svelte apps, as the hooks support both synchronous and asynchronous data retrieval workflows.