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 +8 -0
- package/dist/react/index.js +1 -1
- package/package.json +1 -1
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
|
package/dist/react/index.js
CHANGED
|
@@ -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 ||
|
|
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) {
|