Coder Social home page Coder Social logo

nuxt-query's Introduction

Hello there ๐Ÿ‘‹

I'm Mahdi.

Metrics

Metrics

nuxt-query's People

Contributors

mahdiboomeri avatar

Watchers

 avatar

Forkers

abbijamal

nuxt-query's Issues

`state` enum

state === 'pending' => same as pending
state === 'error' => same as !!error
state === 'success' => same as successful state (no error and pending)

Basic dev-tools

Vue dev-tools plugin can help a lot in terms of DX.
dev-tools should allow:

  • Inspect query cache data
  • See the timeline of changes

Roadmap and Ideas

Most of the inspiration came from @tanstack/query.
I thought about just using the Vue adaptor however that's an additional dependency in the bundle, Nuxt already has a similar API which is well integrated with Nuxt itself.

Motivation

This module is supposed to be a collection of mostly syntax sugars for patterns I saw myself reinventing in a large project using Nuxt 3 useAsyncData.

Goals

  • Minimum bundle cost (aiming for less than 5KB)
  • Drop-in replacement for useAsyncData (no changing behaviors, only adding things)

Roadmap and Ideas

  • #6
  • useMutation
  • #7
  • useInfiniteQuery
  • #4
  • #15
  • Refresh data base on key patterns
  • #8
  • #12
  • new fetchStatus enum => 'fetching' | 'paused' | 'idle'
  • #17
  • network mode => e.g. refetchOnOnline
  • #10
  • global loading indicator => dev only component
  • retry and retry delay
  • paginated or lagged Queries
  • fetch with an IntersectionObserver API
  • #2
  • #13
  • tRPC integeration

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.