Autostart on mount

オープン
#287 コメント 12 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
react-native, typescript
領域
mobile

調査の方向性

issue に示されている useCopilot フックと start("repaircat") 呼び出しから始め、ナビゲーション後に useEffect から呼び出された場合に、そのエントリーポイントがどのように動作するかを追跡してください。ボタンなしで開始することがサポートされているか、また必要なライフサイクル条件は何かを確認してください。要求された 2 画面目の autostart が確実に動作し、このエントリーポイントに対するテストカバレッジがプロジェクトにある場合は回帰テストも追加されていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Whenever i try to start the tour from useEffect, It does'nt work even if am passing setTimeout to it. Example code is given below:

const tour = useCopilot()
useEffect(()=>{
setTimeout(()=>{
tour.start("repaircat");
}, 600)
},[])

In the first screen I have started the tour by passing start() to the button click but in the second screen i want to initiate the tour again by calling start with the name of step through useEffect.

Is there any way to start the tour without clicking any button?

主要言語
TypeScript
スター
2.4k
フォーク
425
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

mohebifar/react-native-copilot のほかの issue

mohebifar/react-native-copilot の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。