[Request] Be able to set spring config per value
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 28/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
まず、リンクされた CodeSandbox で値ごとの設定が必要になるケースを再現し、既存の useSpring API の動作を確認します。1 つの spring 内で opacity と x の個別の設定がどのように機能すべきかを定義し、1 つの API でそれぞれの設定を使って両方の値を制御できることを検証します。
索引モデルが issue の本文から書いたものです。
説明
🚀 Feature Proposal
The idea is to be able to set a spring config per value in a single useSpring.
Motivation + Example
I like to use a single useSpring per component where possible and when doing more complex motion design I need individual values to have their own spring config. This especially becomes important when the spring config is modified depending on the state of the app and user interactions. For example, I may have an opacity value that I want to always transition with a linear duration but an x value that toggles from being stiff to wobbly depending on its direction of motion (open or close).
Currently I have to make two springs to handle this case and then use their apis in sync.
Note: I thought I could use a useSpringRef for a single api to control both springs but I couldn't figure out how to change the config for individual springs this way.
Here is a sandbox: https://codesandbox.io/s/dreamy-turing-3kpom?file=/src/App.js
- 主要言語
- TypeScript
- スター
- 29.3k
- フォーク
- 1.2k
- 平均マージ
- 3日 15時間
- マージ済み PR(30日)
- 17
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pmndrs/react-spring のほかの issue
-
template: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
pmndrs/react-spring#2656 ·
メンテナーはふだん 1 日以内に返信
-
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 日以内に返信
-
release: major type: RFC
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
pmndrs/react-spring#2522 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[bug]: Tab crash with skipAnimation and loop対応中かも @mrityunjay-pandey が 43 日前に担当しました。 オープンarea: core kind: bug
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
pmndrs/react-spring#2409 ·
メンテナーはふだん 1 日以内に返信
pmndrs/react-spring の issue をすべて見る
似ている issue
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
lingdojo/kana-dojo#34714 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
manaflow-ai/cmux#59692 ·
メンテナーはふだん 1 日以内に返信
-
Retire stale Python-parity labels in Rust ingress and auth tests対応中かも @github-actions が今日担当しました。 オープンfactory factory:building factory:unowned ralph-status:in-progress via:opencode-free/hy4-flash-free
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
JoshCLWren/comic-pile#5874 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
area: community lane: free-agent priority: P1 roadmap type: task
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
velella-sh/offing#1046 ·
メンテナーはふだん 1 日以内に返信