@holo-js/flux-react 0.2.6 → 0.3.0

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/index.mjs +0 -3
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -203,9 +203,6 @@ function useFluxConnectionStatus(options = {}) {
203
203
  const onChangeRef = useLatestRef(options.onChange);
204
204
  const onUnmountRef = useLatestRef(options.onUnmount);
205
205
  useEffect(() => {
206
- if (!onChangeRef.current) {
207
- return;
208
- }
209
206
  const unsubscribe = client.onStatusChange((status) => {
210
207
  onChangeRef.current?.(status);
211
208
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@holo-js/flux-react",
3
- "version": "0.2.6",
3
+ "version": "0.3.0",
4
4
  "description": "Holo-JS Framework - React and Next hook skeletons for Flux",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -23,8 +23,8 @@
23
23
  "test": "vitest --run"
24
24
  },
25
25
  "dependencies": {
26
- "@holo-js/broadcast": "^0.2.6",
27
- "@holo-js/flux": "^0.2.6"
26
+ "@holo-js/broadcast": "^0.3.0",
27
+ "@holo-js/flux": "^0.3.0"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "react": "^19.2.6"