storion 0.16.5 → 0.16.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/CHANGELOG.md CHANGED
@@ -9,6 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ---
11
11
 
12
+ ## [0.16.6] - 2024-12-27
13
+
14
+ ### Fixed
15
+
16
+ - `useIsomorphicLayoutEffect` now properly checks for `useLayoutEffect` availability instead of using `dev()` flag, improving React Native/Expo compatibility
17
+
18
+ ---
19
+
12
20
  ## [0.16.5] - 2024-12-27
13
21
 
14
22
  ### Added
@@ -268,7 +268,7 @@ const useStore = Object.assign(useStoreImpl, {
268
268
  from: useStoreFrom
269
269
  });
270
270
  const isServer = typeof window === "undefined";
271
- const useIsomorphicLayoutEffect = isServer || !dev() ? useEffect : useLayoutEffect;
271
+ const useIsomorphicLayoutEffect = isServer || typeof useLayoutEffect === "undefined" ? useEffect : useLayoutEffect;
272
272
  const shouldScheduleDispose = !isServer && dev() && typeof useLayoutEffect === "function";
273
273
  class ScopeController {
274
274
  constructor(container2) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storion",
3
- "version": "0.16.5",
3
+ "version": "0.16.6",
4
4
  "description": "Reactive stores for modern apps. Type-safe. Auto-tracked. Effortlessly composable",
5
5
  "type": "module",
6
6
  "main": "./dist/storion.js",