@tramvai/state 1.90.4 → 1.90.6

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/lib/index.es.js CHANGED
@@ -880,7 +880,7 @@ pure = true,
880
880
  return subscription.tryUnsubscribe();
881
881
  };
882
882
  }, [subscription]);
883
- const actualChildProps = useSyncExternalStore(subscribe, actualChildPropsSelector, serverState ? childPropsSelector(serverState, wrapperProps) : actualChildPropsSelector);
883
+ const actualChildProps = useSyncExternalStore(subscribe, actualChildPropsSelector, serverState ? () => childPropsSelector(serverState, wrapperProps) : actualChildPropsSelector);
884
884
  // Now that all that's done, we can finally try to actually render the child component.
885
885
  // We memoize the elements for the rendered child component as an optimization.
886
886
  const renderedWrappedComponent = useMemo(
package/lib/index.js CHANGED
@@ -902,7 +902,7 @@ pure = true,
902
902
  return subscription.tryUnsubscribe();
903
903
  };
904
904
  }, [subscription]);
905
- const actualChildProps = shim.useSyncExternalStore(subscribe, actualChildPropsSelector, serverState ? childPropsSelector(serverState, wrapperProps) : actualChildPropsSelector);
905
+ const actualChildProps = shim.useSyncExternalStore(subscribe, actualChildPropsSelector, serverState ? () => childPropsSelector(serverState, wrapperProps) : actualChildPropsSelector);
906
906
  // Now that all that's done, we can finally try to actually render the child component.
907
907
  // We memoize the elements for the rendered child component as an optimization.
908
908
  const renderedWrappedComponent = React.useMemo(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/state",
3
- "version": "1.90.4",
3
+ "version": "1.90.6",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@tinkoff/react-hooks": "0.0.24",
22
22
  "@tinkoff/utils": "^2.1.2",
23
- "@tramvai/types-actions-state-context": "1.90.4",
23
+ "@tramvai/types-actions-state-context": "1.90.6",
24
24
  "@types/hoist-non-react-statics": "^3.3.1",
25
25
  "invariant": "^2.2.4",
26
26
  "react-is": ">=17",