Calling start() on useEffect does not register/use all steps, only the first one
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- react-native, typescript
- 領域
- mobile-dev
調査の方向性
exampleフォルダーとuseCopilot/startパスから始め、指定されたReact Nativeセットアップで提供されたuseEffectのケースを再現します。start()との相対関係でステップがいつ登録されるかを追跡します。doneとは、登録されたすべてのステップがそれぞれ独自のコンテンツを持ち、Nextが最初のコンテンツを繰り返すのではなく、対応するコンテンツを順に進めることを意味します。
索引モデルが issue の本文から書いたものです。
説明
Current Behavior
Calling start on useEffect does not register steps. After clicking "next" it moves to next walkthrouable item, but in the current step always displays the first step content.
However, totalSteps displays correct number of steps.
import { useCopilot } from 'react-native-copilot';
const { start } = useCopilot();
useEffect(() => {
start()
},[])
[.. in the return function as in /example folder]
Expected behavior/code
Steps are registered and "next" press works correctly.
Environment
- Device: [iPhone 15 Pro Max Simulator]
- OS: [17.4]
react-native-copilot: [3.3.2]react-native: [71.14]react-native-svg: [14.0.0]
Possible Solution
I was able to solve this by adding timeout of 3s in the useEffect.
setTimeout(() => { start() }, 3000
Additional context/Screenshots
I don't know why it happens, any idea how we can fix it?
- 主要言語
- TypeScript
- スター
- 2.4k
- フォーク
- 425
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mohebifar/react-native-copilot のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
mohebifar/react-native-copilot#354 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
mohebifar/react-native-copilot#351 · コメント 1 件 · リアクション 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
mohebifar/react-native-copilot#349 · コメント 11 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 15/100
mohebifar/react-native-copilot#348 · コメント 2 件 ·
mohebifar/react-native-copilot の issue をすべて見る
似ている issue
-
[Bug]: RUN_STARTED resets the run's tool-call tally even when a subscriber suppresses the eventオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
ag-ui-protocol/ag-ui#3504 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Dokploy/dokploy#6151 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
area/profiles area/sessions comp/desktop desktop/chat desktop/sessions P2 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
NousResearch/hermes-agent#161712 ·
メンテナーはふだん 1 日以内に返信
-
bug p3
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
rothgar/rabble.radio#283 ·
メンテナーはふだん 1 日以内に返信
-
bug from-app needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
nightly-labs/openbot#19805 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信