Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Keep the view on screen while a Scripture edit refetches the book

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
54/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
frontend

調査の方向性

Start by reading useInterlinearizerBookData, useSegmentPages, and the loader in Interlinearizer, including the related issues #436, #438, and #468. Trace how a reload changes the book and page loading states, then keep the loaded view visible while the matching book and pages refresh together. Done means both Scripture edits and onTextChanged reloads update the view without the Loading… panel and preserve scroll position and focus.

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

説明

Follow-up to #438 (#468).

On a Scripture edit to the open book, useInterlinearizerBookData calls reload(). That sets isLoading, so the loader shows the Loading… panel until the new book and pages arrive. Interlinearizer unmounts, and the view loses its scroll position and focus on every edit. The onTextChanged reload from useSegmentPages (#436) does the same.

Fixing the hook alone isn't enough, because a new verseBook also makes useSegmentPages report isLoading. The book and its pages need to change together. One approach:

  • The hook keeps serving the loaded book while a reload of the same book is in flight.
  • useSegmentPages exposes the verseBook its pages belong to.
  • The loader renders from that pair, and shows the curtain only when nothing is loaded for the current book.

This problem largely goes away in 5d, when getTokenizedBook is removed and an edit refetch becomes an outline and page refetch.

Done when: a Scripture edit, or an onTextChanged reload, updates the view without the Loading… panel, and the scroll position and focus are kept.

主要言語
TypeScript
スター
2
フォーク
0
平均マージ
2日 5時間
マージ済み PR(30日)
47

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

sillsdev/interlinearizer-extension のほかの issue

sillsdev/interlinearizer-extension の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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