[bug]: Incorrect tooltips in useTransition docs
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 29.1k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
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:
enterupdateleave
The tooltip content for these props show The to prop, is very versatile, for more information checkout out Async Animations.
To Reproduce
Check the References section in the useTransition docs and activate the tooltips for:
enterupdateleave
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the useTransition documentation's References section and inspect how the enter, update, and leave tooltip content is defined. Replace the repeated to-prop text with information relevant to each prop, then verify the three tooltips on the documented useTransition page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- documentation
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100