Repository navigation
Description
Background
#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 Multi-value form data and TypedDict coercion; deprecate id-based form fields #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.
Activity
linear-code commentedon Oct 2, 2026
ENG-13024
harsh21234i commentedon Oct 2, 2026
I’d like to take this on. I’ll verify the first
reflex-components-corerelease that includes thegetFormDatasubmit hook, update all dependency floors that still allow older releases, remove the obsolete state helpers and related test, add a breaking news fragment, and test a productionrx.formbuild against the oldest supported core version. Let me know if you’d prefer a different compatibility boundary or test approach.