패키지, 저장소 및 앱 카테고리 검색

패키지 상세v0.6.1

ferry_store

Ferry GraphQL 클라이언트용 기본 저장소

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
7.2만
좋아요
2
Pub 점수
130

패키지 설치

flutter pub add ferry_store

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Ferry Store는 Flutter 애플리케이션에서 GraphQL 쿼리 결과를 효율적으로 관리하고 캐시하기 위해 설계된 Ferry GraphQL 클라이언트의 기본 상태 관리 솔루션입니다. Ferry와 원활하게 통합되어 반응형이고 타입 안전한 스토어를 제공하며, 서버와 데이터를 동기화하고 옵티미스틱 업데이트를 지원하며 구독을 처리합니다. 성능과 개발자 경험을 고려해 제작되었으며, 부가 코드를 줄이고 플랫폼 간 일관성을 보장함으로써 GraphQL 기반 앱에서 상태 처리를 단순화합니다.

사용 사례

  • 캐시된 GraphQL 쿼리 결과 관리
  • 구독을 통한 실시간 업데이트 처리
  • 낙관적인 UI 업데이트
  • 크로스 플랫폼 GraphQL 상태 관리
  • 로컬 상태를 서버 데이터와 동기화하는 중

주요 기능

  • 내장 캐시 레이어
  • 타입 안전한 상태 관리
  • 낙관적 업데이트를 지원합니다
  • 실시간 구독 처리
  • Ferry 클라이언트와의 원활한 통합

적합한 대상

  • Ferry GraphQL 클라이언트를 사용하는 Flutter 앱
  • 효율적인 데이터 동기화가 필요한 앱
  • GraphQL 상태를 위한 최소한의 보일러플레이트를 찾는 개발자
  • 다중 플랫폼을 대상으로 하는 프로젝트
  • 반응형 UI 패턴을 우선시하는 팀

고려 사항

  • Ferry GraphQL 클라이언트 필요
  • Ferry 생태계 외부에서 제한된 독립 사용
  • 페리 고유의 패턴을 배워야 할 수 있습니다
  • 비-GraphQL 상태 관리에 적합하지 않음
  • 페리가 생성한 코드와 가장 잘 어울림

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

A simple, powerful GraphQL Client for Flutter and Dart

MIT License PRs Welcome Watch on GitHub Star on GitHub Watch on GitHub Discord

Documentation 📖

Features

  1. ✅ Fully Typed: work faster and safer with compile time checks and IDE autocomplete, including fully typed Cache reads and writes.
  2. 🔄 Built-In Code Generators: automatically generated immutable data classes for all your GraphQL Operations and Fragments, based on your schema.
  3. 🌐 Customizable Network Interface: highly customizable network interface using gql_link, allowing you to compose and extend Links.
  4. ✨ Normalized Optimistic Cache: keep data in sync with cache normalization and update your UI instantly with optimistic data.
  5. 💾 Multiple Data Stores: extensible Store interface with built-in MemoryStore and HiveStore (which uses hive for offline persistence).
  6. 📄 Refetch & Pagination: easily update responses with new data or combine multiple responses, allowing for seamless pagination.
  7. 📱 Flutter Widgets: Widgets for Queries, Mutations, and Subscriptions, available out of the box.
  8. 🧈 Smooth: Run queries in a separate Isolate to free up resources on the UI thread

Packages

This repo is a monorepo for ferry and related packages.

Pub Package Description
version package:ferry Stream-based GraphQL Client
version package:ferry_cache Normalized, strongly typed, optimistic cache
version package:ferry_exec Strongly typed GraphQL execution interface
version package:ferry_flutter Flutter Widgets for GraphQL Operations
version package:ferry_generator Dart Type Generator for GraphQL Operations
version package:ferry_store Data Persistence for ferry's cache
version package:ferry_hive_store Hive implementation of ferry_store
version package:normalize Normalization / denormalization of GraphQL data

카테고리

의존성

의존성 목록 2 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.