GithubHelp home page GithubHelp logo

edumudu / swr-vue Goto Github PK

View Code? Open in Web Editor NEW
14.0 1.0 0.0 1.53 MB

A composables library for data fetching based on Vue 3 Composition-API.

Home Page: https://edumudu.github.io/swr-vue/

License: MIT License

Shell 0.18% JavaScript 0.14% TypeScript 99.69%
cache composition-api data-fetching request stale-while-revalidate swr vue vue-swr vue-use javascript

swr-vue's Introduction

Hi ๐Ÿ‘‹, I'm Eduardo Wesley

A 21-year-old passionate developer from Brazil

  • ๐ŸŒฑ Iโ€™m currently learning Golang
  • โš™๏ธ I daily use .html .css .scss .json .vue .ts .js
  • ๐Ÿ“ซ How to reach me [email protected]

Connect with me:

Technologies & Tools ๐Ÿ› ๏ธ

  • Front End



  • Back End & Cloud Services



  • Utils



  • Tools

    • Version Control & Issue Tracking



    • Issue Tracking & Project Management



    • Code Editor & Package Manager



GitHub Stats ๐Ÿ“Š

Edumudu's GitHub Stats Edumudu's Top Languages

swr-vue's People

Contributors

edumudu avatar semantic-release-bot avatar siimaoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

swr-vue's Issues

Key as array

Allow receiving an array as a key to offer an option of combining multiple pieces of information to form a unique key

Unable to install on Node 18 LTS

The package.json specifies the Node engine to require version 16. With the release of NodeJS 18 LTS, this blocks installing of the package.

Is the engine intentionally locked down to 16, or would it be possible to change it to either include 18, or alternatively use 16 and up?

Add global configuration

Allow the user to set a default configuration for the project.

The local configuration should be more relevant than the global one

Implement configuration using the context(inject/provide). This way is possible to use multiple global configurations in the same app in the same way that Vue 3 allows you to create multiple apps

Add Deduplication

add an option dedupingInterval with the default value as 2000 ms

this interval is to prevent send multiple requests for the same key when components are mounted inside this interval.

The first call to a key should send the request, and the subsequent calls inside this interval should not trigger a new request, and should resolve the same value as the first

Add auto revalidations behaviors

Behavios should be controlled by these options

revalidateOnFocus

Should revalidade when the window get focused

Default: true

  • revalidateIfStale
    automatically revalidate even if there is stale data

Default: true

revalidateOnReconnect

Should automatically revalidate when the browser regains a network connection (via 'navigator.online')

Default: true

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.