Skip to content

[bug]: Incorrect tooltips in useTransition docs #2232

@dibenso

Description

@dibenso

Which react-spring target are you using?

  • @react-spring/web
  • @react-spring/three
  • @react-spring/native
  • @react-spring/konva
  • @react-spring/zdog

What version of react-spring are you using?

9.7.3

What's Wrong?

Browsing the docs for useTransition on https://www.react-spring.dev/docs/components/use-transition shows the incorrect tooltip content for the following props:

  • enter
  • update
  • leave

The tooltip content for these props show The to prop, is very versatile, for more information checkout out Async Animations.

image

To Reproduce

Check the References section in the useTransition docs and activate the tooltips for:

  • enter
  • update
  • leave

They display incorrect information about each prop.

Expected Behaviour

The tooltip should show information relevant to what each prop does, instead of the to prop for all of them.

Link to repo

https://www.react-spring.dev/docs/components/use-transition#reference

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions