react-component / react-component/motion

CSSMotion render props 回调中的className闪烁一下,然后消失

Open
#15 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
178
Forks
51
PR merge metrics
No merged PRs in 30d

Description

https://codesandbox.io/s/eager-pine-9kh0k?file=/src/index.js

console中的输出,先正确输出类名,然后输出undefined

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked CodeSandbox and reproduce the CSSMotion render-props callback while watching the console output. Trace where the callback first receives the correct className and then receives undefined. Done means the className remains correct throughout the motion lifecycle and the reproduced console output no longer shows the transient undefined value.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.