Remove getRefValue and getRefValues from state.js before 1.0
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 68/100
- issue の種類
- リファクタリング
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript, python
調査の方向性
Start with the root pyproject.toml and package metadata under packages/ to trace every reflex-components-core floor, then inspect packages/reflex-base/src/reflex_base/.templates/web/utils/state.js and tests/units/compiler/test_state_js_template.py. Check the existing news fragments and AppHarnessProd usage before making changes. Done means stale exports and their test are removed, dependency floors and a breaking fragment are updated, and the oldest allowed core combination builds a minimal form in production mode.
索引モデルが issue の本文から書いたものです。
説明
Background
reflex-dev/reflex#7386 changed form submission to read field values only from FormData, by name, through the new getFormData helper. Forms no longer read values through id refs, so nothing in the current framework calls getRefValue or getRefValues in $/utils/state (packages/reflex-base/src/reflex_base/.templates/web/utils/state.js).
They were kept anyway. Published reflex-components-core releases up to 0.9.10.post1 compile every form's submit handler with imports of both helpers. A new reflex-base paired with one of those releases fails the production build:
[MISSING_EXPORT] "getRefValue" is not exported by "utils/state.js".
[MISSING_EXPORT] "getRefValues" is not exported by "utils/state.js".
That pairing is still allowed. #7386 floors reflex-components-radix on reflex-components-core >= 0.9.10.post2.dev0, which covers installs through reflex. But other dependents still admit older core releases:
reflexitself declaresreflex-components-core >= 0.9.6.- Several component packages declare
>= 0.9.0.
Upgrading only reflex-base next to an older reflex can also reach the old core.
Task
Before 1.0:
- Raise every declared
reflex-components-corefloor so that no allowed release predates thegetFormDatasubmit hook. That means the first core release containing #7386, in the rootpyproject.tomland the other packages underpackages/. - Remove
getRefValueandgetRefValuesfromstate.js. They're marked "Kept for forms compiled by reflex-components-core releases that read field values from refs". - Remove
test_state_js_keeps_ref_value_exports_for_older_form_componentsfromtests/units/compiler/test_state_js_template.py. Point the slice end intest_merge_slot_props_handles_conditional_event_handlers(currentlyexport const getRefValue =) at the next export. - Add a
breakingnews fragment inpackages/reflex-base/news/for anyone importing the helpers in custom JS. - Verify the oldest allowed combination still builds a form in production mode. For example: install the oldest allowed published
reflex-components-coreinto a separate target dir, put it first onPYTHONPATH, and build a minimalrx.formapp withreflex.testing.AppHarnessProd.
- 主要言語
- Python
- スター
- 29k
- フォーク
- 1.8k
- 平均マージ
- 3日 5時間
- マージ済み PR(30日)
- 182
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
reflex-dev/reflex のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
reflex-dev/reflex#8026 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Kept env.py failure: the "move it aside" hint is dropped and a full traceback is logged when alembic.ini uses a relative script_location対応中かも @MaiAditya が 13 日前に担当しました。 オープンbug release-train
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
reflex-dev/reflex#7856 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
0.9.12 changelog follow-ups: the #7132 "_get_was_touched" entry describes unreachable behaviour, #7115's hasattr/getattr change is undocumented, #7131's wording再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンrelease-train
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
reflex-dev/reflex#7260 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
ClientStateVar: a component that mounts while the value is non-default never re-renders on the push back to the default再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
reflex-dev/reflex#6823 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
documentation upstream
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
reflex-dev/reflex#6436 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
reflex-dev/reflex の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
superlinked/sie#1033 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
apache/ponymail-foal#365 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
NousResearch/hermes-labs-plugins#116 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
gcivil-nyu-org/team-3-fall26#192 ·
メンテナーはふだん 1 日以内に返信
-
[Study plan] Study sessions can be rescheduled to any length (e.g. 72 hours) with no length checkオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
gcivil-nyu-org/team-2-fall26#159 ·
メンテナーはふだん 1 日以内に返信