Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Warning from React Spring: Got NaN while animating #85

Open
larprad opened this issue Feb 8, 2022 · 8 comments
Open

Warning from React Spring: Got NaN while animating #85

larprad opened this issue Feb 8, 2022 · 8 comments

Comments

@larprad
Copy link

larprad commented Feb 8, 2022

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
_

@AdilRaza02
Copy link

AdilRaza02 commented Mar 6, 2022

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

@catc
Copy link
Owner

catc commented Apr 28, 2022

I'll look into this for the next update.

@Luffi2539
Copy link

Hello everyone, is there any updates about this issue?

@Thomasc33
Copy link

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.

@JLVersori
Copy link

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

@fhtyamamoto
Copy link

Does anyone have a workaround?

@catc
Copy link
Owner

catc commented Sep 14, 2022

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?

@Thomasc33
Copy link

Thomasc33 commented Oct 14, 2022

@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
}

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants