Skip to content

Set in [x, set] = useSpring(() => ({ ... })) is not callable #1359

@CodyJasonBennett

Description

@CodyJasonBennett

🐛 Bug Report

useSpring does not expose a callable method in [x, set] = useSpring(() => ({ ... })).

This is related to #1118 where this issue was first raised but passed off as a depreciation.

Reproduction | Workaround

Environment

  • react-spring v9.0.0
  • react v17.0.1

Metadata

Metadata

Assignees

Labels

kind: requestNew feature or request that should be actioned

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions