You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@logux/vuex

Package Overview
Dependencies
Maintainers
2
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@logux/vuex - npm Package Compare versions

Comparing version

to
0.9.7

3

CHANGELOG.md
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
## 0.9.7
* Add `store` option from `useSubscription` to support different store sources.
## 0.9.6

@@ -5,0 +8,0 @@ * Update Vue to release candidate 9

@@ -7,2 +7,4 @@ import {

import { LoguxVuexStore } from '..'
export type Channel =

@@ -20,2 +22,9 @@ | string

export type useSubscriptionOptions = {
/**
* Logux Vuex store.
*/
store: LoguxVuexStore
}
/**

@@ -55,6 +64,8 @@ * Composable function that subscribes

* @param channels Channels to subscribe.
* @param opts Options.
* @return `true` during data loading.
*/
export function useSubscription (
channels: Channels
channels: Channels,
options: useSubscriptionOptions
): Ref<boolean>

4

composable/index.js

@@ -13,5 +13,5 @@ import { useStore } from 'vuex'

function useSubscription (channels) {
function useSubscription (channels, options = {}) {
let isSubscribing = ref(true)
let store = useStore()
let store = options.store || useStore()

@@ -18,0 +18,0 @@ if (isRef(channels) || isFunction(channels)) {

{
"name": "@logux/vuex",
"version": "0.9.6",
"version": "0.9.7",
"description": "Vuex compatible API for Logux",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet