[bug]: Typescript error with `position: "absolute"`
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- react, typescript
- 领域
- frontend
调研方向
首先运行链接的 CodeSandbox,并使用 @react-spring/web、useTransition 和一个动画 div 重现 TypeScript 错误。跟踪 from 属性和 style 赋值所涉及的类型;在重现的示例中,position: "absolute" 不产生 TypeScript 错误即表示完成。
由索引模型根据 Issue 内容生成。
描述
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.5.5
What's Wrong?
Setting position: "absolute" in the from property of the useTransition hook shows a typescript error when setting style on the animated div.
To Reproduce
Set position: "absolute" in the from property of the useTransition hook.
Expected Behaviour
No errors
Link to repo
https://codesandbox.io/s/youthful-gianmarco-y5q1v2?file=/src/App.tsx
- 主要语言
- TypeScript
- 星标
- 29.2k
- 派生
- 1.2k
- 平均合并
- 2 天 9 小时
- 30 天内合并 PR
- 70
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pmndrs/react-spring 的其他 Issue
-
area: core kind: request
难度 4/5 3-5 天 新手友好度 55/100
pmndrs/react-spring#2542 ·
维护者通常 1 天内回复
-
area: typescript kind: request release: major
难度 4/5 3-5 天 新手友好度 52/100
pmndrs/react-spring#2541 · 1 条评论 ·
维护者通常 1 天内回复
-
animated() throws 'cannot add a new property' on non-extensible React Native host components (Hermes)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 3/5 1-2 天 新手友好度 68/100
pmndrs/react-spring#2533 ·
维护者通常 1 天内回复
-
release: major type: RFC
难度 5/5 一周以上 新手友好度 35/100
pmndrs/react-spring#2522 · 1 条评论 ·
维护者通常 1 天内回复
-
[bug]: Tab crash with skipAnimation and loop可能已有人在做 @mrityunjay-pandey 于 7 天前认领。 未关闭area: core kind: bug
难度 3/5 1-2 天 新手友好度 52/100
pmndrs/react-spring#2409 ·
维护者通常 1 天内回复
查看 pmndrs/react-spring 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
paperclipai/paperclip#17151 ·
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 83/100
AgoraIO-Extensions/agent-infra#3159 ·
维护者通常 1 天内回复
-
blocklist addition
难度 1/5 1 小时以内 新手友好度 66/100
MetaMask/eth-phishing-detect#304596 ·
维护者通常 1 天内回复
-
friction
难度 2/5 1-3 小时 新手友好度 70/100
kentcdodds/kody#4142 ·
-
[Bug] Statistics | Task statistics are always empty on MikroORM with MySQL or SQLite可能已有人在做 @NdekoCode 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
ever-co/ever-gauzy#11214 ·
维护者通常 1 天内回复