react-timekeeper icon indicating copy to clipboard operation
react-timekeeper copied to clipboard

Warning from React Spring: Got NaN while animating

Open larprad opened this issue 3 years ago • 8 comments

Hello and thank you for the very nice component!

When using it I am trigerring a warning message on the console that seem to be emitted by the react Spring dependency: _Got NaN while animating

It seems to happen when mounting and unmounting the TimeKeeper component

6b665dc0-2268-49cd-b9c7-459f71f2b2e3 _

larprad avatar Feb 08 '22 14:02 larprad

I am also getting the same warning. Did you find any work around?

AdilRaza02 avatar Mar 06 '22 05:03 AdilRaza02

I'll look into this for the next update.

catc avatar Apr 28 '22 21:04 catc

Hello everyone, is there any updates about this issue?

Luffi2539 avatar Jun 30 '22 09:06 Luffi2539

If it helps, I noticed this only started happening to me once I upgraded from react v16 to react v18. Same code, but that was when I started getting the error.

Thomasc33 avatar Jul 27 '22 14:07 Thomasc33

Hi @catc, any updates on this? Or is this not being maintained?

JLVersori avatar Sep 09 '22 08:09 JLVersori

Does anyone have a workaround?

fhtyamamoto avatar Sep 12 '22 16:09 fhtyamamoto

Don't have time to put in a fix yet, but will investigate closer to mid oct. Is this actually breaking anything, or just spewing errors?

catc avatar Sep 14 '22 20:09 catc

@catc its just spewing errors, no actual bugs

image

{
    "id": 1,
    "key": "opacity",
    "_priority": 0,
    "animation": {
        "changed": false,
        "values": [
            {
                "done": true,
                "elapsedTime": null,
                "lastPosition": 1,
                "lastVelocity": null,
                "v0": 0,
                "durationProgress": 0,
                "_value": 1
            }
        ],
        "toValues": [
            1
        ],
        "fromValues": [
            null
        ],
        "to": 1,
        "config": {
            "tension": 170,
            "friction": 26,
            "damping": 1,
            "mass": 1,
            "velocity": 0,
            "clamp": false
        },
        "immediate": false
    },
    "defaultProps": {},
    "_state": {
        "paused": false,
        "delayed": false,
        "pauseQueue": {},
        "resumeQueue": {},
        "timeouts": {}
    },
    "_pendingCalls": {},
    "_lastCallId": 1,
    "_lastToId": 1,
    "_memoizedDuration": 0
}

Thomasc33 avatar Oct 14 '22 17:10 Thomasc33