timeline-composer
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -78,3 +78,3 @@ 'use strict'; | ||
var useAnimationFrame = function useAnimationFrame(callback, deps) { | ||
React.useLayoutEffect(function () { | ||
React.useEffect(function () { | ||
var id; | ||
@@ -81,0 +81,0 @@ var lastTime; |
@@ -78,3 +78,3 @@ 'use strict'; | ||
var useAnimationFrame = function useAnimationFrame(callback, deps) { | ||
React.useLayoutEffect(function () { | ||
React.useEffect(function () { | ||
var id; | ||
@@ -81,0 +81,0 @@ var lastTime; |
@@ -1,2 +0,2 @@ | ||
import React, { useLayoutEffect, useState, useRef, Fragment } from 'react'; | ||
import React, { useEffect, useState, useRef, Fragment } from 'react'; | ||
@@ -70,3 +70,3 @@ function _arrayWithHoles(arr) { | ||
var useAnimationFrame = function useAnimationFrame(callback, deps) { | ||
useLayoutEffect(function () { | ||
useEffect(function () { | ||
var id; | ||
@@ -73,0 +73,0 @@ var lastTime; |
@@ -10,3 +10,3 @@ { | ||
"description": "Composable timelines for React.", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"main": "dist/timeline-composer.cjs.js", | ||
@@ -13,0 +13,0 @@ "module": "dist/timeline-composer.esm.js", |
21978