Socket
Socket
Sign inDemoInstall

@xxskyy/vue-apollo-helper

Package Overview
Dependencies
21
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @xxskyy/vue-apollo-helper

Helpful Vue Apollo helpers


Version published
Weekly downloads
3
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Vue-Apollo V4 Helper

It's small library to make your Vue-apollo experince smoother and less complicated.

Features

Watch Result

Fix for known from a long time issue that causing cached results don't call onResult function.

example:

const { result } = useQuery(query)

watchResult(result, (result) => {
  // Will always be called, even on cached queries
  console.log(result)
})

Async Result

Function that returns result from query as Promise , helpful with actually in experimental state Suspense feature and removing overhead from simple async functions.

example:

const { result } = useQuery(query)

const result = await asyncResult(result)

Keywords

FAQs

Last updated on 23 Apr 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc