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

패키지 상세v7.0.0

preact_signals

Preact.js Signals의 Dart 포트

AndroidiOSLinuxmacOSWebWindows
30일 다운로드
10.9만
좋아요
8
Pub 점수
130

패키지 설치

flutter pub add preact_signals

패키지 개요

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

Preact Signals는 Preact.js Signals 라이브러리의 Dart 버전으로, Flutter 애플리케이션을 위한 가볍고 반응형 상태 관리 솔루션을 제공합니다. 값이 변경될 때 자동으로 종속성을 추적하고 업데이트를 트리거하는 신호를 통해 세밀한 반응성을 가능하게 합니다. 간단함과 성능을 중시하여 봐일러플레이트 없이 Flutter 프로젝트에 원활하게 통합되어 상태를 관리할 수 있습니다. 웹, 모바일, 데스크톱을 포함한 모든 주요 플랫폼을 지원하며, 크로스플랫폼 개발에 이상적입니다. 실제 데이터 변경 기반의 예측 가능한 재렌더링과 최소한의 오버헤드를 강조합니다.

사용 사례

  • 실시간 UI 업데이트
  • 세밀한 상태 업데이트
  • 크로스 플랫폼 반응형 앱
  • 경량 상태 관리
  • 효율적인 종속성 추적

주요 기능

  • 자동 종속성 추적
  • 최소 재렌더링
  • 보일러플레이트 코드 없음
  • 크로스 플랫폼 지원
  • 간단한 API 설계

적합한 대상

  • 작은부터 중간 규모의 Flutter 앱
  • 경량 상태 관리가 필요한 개발자
  • 고반응성과 낮은 오버헤드를 요구하는 프로젝트
  • React 유사 패턴에 익숙한 팀
  • 웹 및 다중 플랫폼 애플리케이션

고려 사항

  • 더 큰 상태 관리 도구에 비해 생태계가 제한적
  • 매우 복잡한 상태 트리에는 적합하지 않음
  • 시그널 패턴에 익숙하지 않은 개발자에게는 학습 곡선이 높다
  • 디버깅을 위해 추가 도구가 필요할 수 있습니다
  • 성숙한 대안보다 커뮤니티 지원이 적음

원본 README

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

Tests Website GitHub stars Coverage GitHub issues GitHub pull-requests melos

Signals.dart

Try chat with CodeWiki!

Features

  • 🪡 Fine grained reactivity: Based on Preact Signals and provides a fine grained reactivity system that will automatically track dependencies and free them when no longer needed
  • ⛓️ Lazy evaluation: Signals are lazy and will only compute values when read. If a signal is not read, it will not be computed
  • 🗜️ Flexible API: Every app is different and signals can be composed in multiple ways. There are a few rules to follow but the API surface is small
  • 🔬 Surgical Rendering: Widgets can be rebuilt surgically, only marking dirty the parts of the Widget tree that need to be updated and if mounted
  • 💙 100% Dart Native: Supports Dart JS (HTML), Shelf Server, CLI (and Native), VM, Flutter (Web, Mobile and Desktop). Signals can be used in any Dart project

To start using signals, check out the full documentation.

VS Code Extension: https://marketplace.visualstudio.com/items?itemName=rodydavis.signals-dart

Packages

Package Pub
signals signals
signals_core signals_core
signals_flutter signals_flutter
signals_lint signals_lint
signals_hooks signals_hooks
preact_signals signals_lint
signals_devtools_extension

AI Developer Skills

To enable AI coding assistants (like Google Antigravity, Gemini, Claude, Cursor, GitHub Copilot, and others) to build high-quality reactive systems with signals.dart, this repository includes prepackaged, high-fidelity developer Skills.

These skills are located under the ./skills directory and are fully modular:

  • signals-preact-dart: Deep knowledge and best practices for core reactive primitives (signal, computed, effect, batch, untracked).
  • signals-dart: Best practices for async signal operations (FutureSignal, StreamSignal), reactive collections, writable computed signals (linkedSignal), and value semantics.
  • signals-flutter: Comprehensive guides on element-level reactive UI integration, high-frequency GPU rendering bypasses, lifecycle side-effects, and .watch(context) extensions.
  • signals-migration-6-to-7: Detailed instructions, patterns, and refactoring techniques to safely upgrade applications from signals v6.x to v7.0.0.
How to use them:
1. One-Command Installation via skills.sh

You can instantly install all available signals skills into your global AI environment using the unified skills.sh registry CLI:

npx skills add rodydavis/signals.dart
2. Manual Reference

Simply reference the path to the desired skill directory in your AI prompt, or load the contents of the relevant SKILL.md files as context for your AI coding assistant.

Contributors

카테고리

의존성

의존성 목록 1 개

소스 저장소

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

아직 데이터가 없습니다.

순위