particle-network-bg 0.0.3 → 0.0.4

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.
package/dist/react.js CHANGED
@@ -462,7 +462,7 @@ function useParticleNetwork(config) {
462
462
  instance.cleanup();
463
463
  instanceRef.current = null;
464
464
  };
465
- }, []);
465
+ }, [config]);
466
466
  return canvasRef;
467
467
  }
468
468
  function ParticleNetworkBg({
package/dist/react.mjs CHANGED
@@ -21,7 +21,7 @@ function useParticleNetwork(config) {
21
21
  instance.cleanup();
22
22
  instanceRef.current = null;
23
23
  };
24
- }, []);
24
+ }, [config]);
25
25
  return canvasRef;
26
26
  }
27
27
  function ParticleNetworkBg({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "particle-network-bg",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Interactive particle network animation for backgrounds",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -56,4 +56,3 @@
56
56
  "typescript": "^5.0.0"
57
57
  }
58
58
  }
59
-