use-broadcast-ts
Advanced tools
Comparing version 1.2.4 to 1.3.0
@@ -183,2 +183,9 @@ 'use strict'; | ||
/** | ||
* If the stores should not be synced, return. | ||
*/ | ||
if (options.unsync) { | ||
return; | ||
} | ||
/** | ||
* Get the fresh states | ||
@@ -218,2 +225,3 @@ */ | ||
} | ||
/** | ||
@@ -220,0 +228,0 @@ * Remove all the functions and symbols from the store |
@@ -14,2 +14,7 @@ import { StateCreator, StoreMutatorIdentifier } from 'zustand'; | ||
mainTimeout?: number; | ||
/** | ||
* If the stores should be synced after the first sync or not. | ||
* @default undefined | ||
*/ | ||
unsync?: boolean; | ||
}; | ||
@@ -16,0 +21,0 @@ /** |
{ | ||
"name": "use-broadcast-ts", | ||
"version": "1.2.4", | ||
"version": "1.3.0", | ||
"description": "Use the Broadcast Channel API in React easily with hooks or Zustand, and Typescript!", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -16,2 +16,8 @@ import { StateCreator, StoreMutatorIdentifier } from 'zustand'; | ||
mainTimeout?: number; | ||
/** | ||
* If the stores should be synced after the first sync or not. | ||
* @default undefined | ||
*/ | ||
unsync?: boolean; | ||
}; | ||
@@ -79,2 +85,9 @@ | ||
/** | ||
* If the stores should not be synced, return. | ||
*/ | ||
if (options.unsync) { | ||
return; | ||
} | ||
/** | ||
* Get the fresh states | ||
@@ -112,4 +125,2 @@ */ | ||
type s = { [key: string]: unknown }; | ||
/** | ||
@@ -116,0 +127,0 @@ * Remove all the functions and symbols from the store |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33696
997