@barelyshaped/query-signal
TypeScript icon, indicating that this package has built-in type declarations

0.0.1-alpha.1 • Public • Published

QuerySignal

This is a library to help you manage data queries, however you want to make them, using Angular Signals.

The development is on very early stages and it is still very experimental

(back to top)

Built With

  • Angular

(back to top)

Getting Started

Prerequisites

You'll need at least Angular v16, because that's the first version shipping with Signals.

Installation

  • npm
    npm install @baralyshaped/query-signal

(back to top)

Usage

For the example, please refer to this blog post

(back to top)

Roadmap

  • [x] Data cache in memory and query status
  • [ ] Alternative data cache strategy
  • [ ] Mutations
  • [ ] Refetch automatically
    • [ ] On timers
    • [ ] On refocus
  • [x] Don't let this die

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Acknowledgments

  • React Query - This is the main inspiration, I want to make something this simple for Angular.

(back to top)

Build

Run ng build query-signal to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test query-signal to execute the unit tests via Karma.

Readme

Keywords

none

Package Sidebar

Install

npm i @barelyshaped/query-signal

Weekly Downloads

0

Version

0.0.1-alpha.1

License

none

Unpacked Size

30.1 kB

Total Files

12

Last publish

Collaborators

  • michaeljota