Support for ts-pattern.match() inside worklets
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- react-native, typescript
- 領域
- mobile-dev
調査の方向性
Start by reproducing the reported ts-pattern.match() failure inside a Reanimated worklet and trace how worklets handle closures and non-serializable logic. Review the worklet support and transformation entry points, then define how successful matching should behave on the UI thread and add coverage for the reported runtime error.
索引モデルが issue の本文から書いたものです。
説明
🧠 Feature Request: Support for ts-pattern.match() inside Reanimated worklets
I'm requesting support for using ts-pattern's match() function inside worklets
🧪 Current Behavior
Using ts-pattern.match inside a worklet results in the following runtime
ts-pattern.match() causes [Reanimated] Tried to synchronously call a non-worklet function on the UI thread
💡 Why This Matters
-
ts-pattern enables exhaustive, type-safe pattern matching in TypeScript.
-
Many developers reach for this library to improve control flow and readability, including in animations or shared UI logic.
-
However, worklet context throws errors because match() creates closures and uses non-serializable logic.
- 主要言語
- C++
- スター
- 791
- フォーク
- 65
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
margelo/react-native-worklets-core のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
margelo/react-native-worklets-core#271 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
margelo/react-native-worklets-core#269 · リアクション 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
margelo/react-native-worklets-core#268 · コメント 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
margelo/react-native-worklets-core#267 · コメント 1 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
margelo/react-native-worklets-core#266 · コメント 1 件 · リアクション 2 件 ·
margelo/react-native-worklets-core の issue をすべて見る
似ている issue
-
prio:medium status:idea type:feat
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
tests
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
kind/bug needs-sig needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
drogonframework/drogon#2605 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
ArthurSonzogni/FTXUI#1363 ·