@react-spring/animated
Advanced tools
Comparing version 9.0.0-canary.808.9.7e75a67 to 9.0.0-canary.808.10.132aadf
@@ -14,2 +14,3 @@ 'use strict'; | ||
var React__default = _interopDefault(React); | ||
var reactLayoutEffect = require('react-layout-effect'); | ||
@@ -457,3 +458,3 @@ var $node = Symbol.for('Animated:node'); | ||
}); | ||
shared.useIsomorphicLayoutEffect(function () { | ||
reactLayoutEffect.useLayoutEffect(function () { | ||
shared.each(dependencies, function (dep) { | ||
@@ -460,0 +461,0 @@ return dep.addChild(props); |
@@ -1,5 +0,6 @@ | ||
import { defineHidden, each, getFluidConfig, Globals, is, createInterpolator, isAnimatedString, useForceUpdate, useIsomorphicLayoutEffect } from '@react-spring/shared'; | ||
import { defineHidden, each, getFluidConfig, Globals, is, createInterpolator, isAnimatedString, useForceUpdate } from '@react-spring/shared'; | ||
import _extends from '@babel/runtime/helpers/esm/extends'; | ||
import { createAnimatedTransform, createAnimatedStyle, frameLoop, applyAnimatedValues, getComponentProps } from '@react-spring/shared/globals'; | ||
import React, { forwardRef, useRef } from 'react'; | ||
import { useLayoutEffect } from 'react-layout-effect'; | ||
@@ -342,3 +343,3 @@ const $node = Symbol.for('Animated:node'); | ||
}); | ||
useIsomorphicLayoutEffect(() => { | ||
useLayoutEffect(() => { | ||
each(dependencies, dep => dep.addChild(props)); | ||
@@ -345,0 +346,0 @@ return () => each(dependencies, dep => dep.removeChild(props)); |
{ | ||
"name": "@react-spring/animated", | ||
"version": "9.0.0-canary.808.9.7e75a67", | ||
"version": "9.0.0-canary.808.10.132aadf", | ||
"description": "Animated component props for React", | ||
@@ -31,3 +31,4 @@ "keywords": [ | ||
"@babel/runtime": "^7.3.1", | ||
"@react-spring/shared": "9.0.0-canary.808.9.7e75a67" | ||
"@react-spring/shared": "9.0.0-canary.808.10.132aadf", | ||
"react-layout-effect": "^1.0.1" | ||
}, | ||
@@ -34,0 +35,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
61464
3
1243
+ Addedreact-layout-effect@^1.0.1
+ Added@react-spring/shared@9.0.0-canary.808.10.132aadf(transitive)
+ Addedreact@19.0.0(transitive)
+ Addedreact-layout-effect@1.0.5(transitive)
- Removed@react-spring/shared@9.0.0-canary.808.9.7e75a67(transitive)