libshv-js 3.23.2 → 3.23.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/vue-shv.js +4 -0
  2. package/package.json +1 -1
package/dist/vue-shv.js CHANGED
@@ -354,6 +354,10 @@ function useShv(options) {
354
354
  if (!initialized) {
355
355
  initialized = true;
356
356
  (0, vue_1.watchEffect)(async () => {
357
+ (0, vue_1.onWatcherCleanup)(() => {
358
+ initialized = false;
359
+ resource.value = undefined;
360
+ });
357
361
  if (connected.value !== 'connected') {
358
362
  return;
359
363
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libshv-js",
3
- "version": "3.23.2",
3
+ "version": "3.23.3",
4
4
  "description": "Typescript implementation of libshv",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",