Skip to content

fix(components): drop dead datadisplay lazy exports - #7124

Draft
benedikt-bartscher wants to merge 1 commit into
reflex-dev:mainfrom
benedikt-bartscher:fix-datadisplay-stale-lazy-exports
Draft

fix(components): drop dead datadisplay lazy exports#7124
benedikt-bartscher wants to merge 1 commit into
reflex-dev:mainfrom
benedikt-bartscher:fix-datadisplay-stale-lazy-exports

Conversation

@benedikt-bartscher

@benedikt-bartscher benedikt-bartscher commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Review in cubic

`reflex_components_core.datadisplay` still lazy-attached `code` and
`dataeditor` submodules, but those shipped out to the standalone
reflex-components-code and reflex-components-dataeditor packages, so
nothing under `reflex_components_core/datadisplay/` provides them:

    >>> import reflex_components_core.datadisplay as dd
    >>> dd.code_block
    ModuleNotFoundError: No module named
    'reflex_components_core.datadisplay.code'

The generated stub inherited the same dead entries and imported `.code`
and `.dataeditor`, which pyright reports as unresolved imports.

The names users reach for keep working: `rx.code_block` /
`rx.data_editor` resolve against the new packages, and
`reflex.components.datadisplay.code` is redirected there by the import
hook in `reflex/components/__init__.py` — both covered by the new tests.
@greptile-apps

greptile-apps Bot commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; it removes only nonfunctional exports and preserves the supported component access paths.

Summary

  • Retains the valid logo lazy export.
  • Updates the generated stub hash for the reduced namespace.
  • Adds regression coverage for all remaining exports and the supported redirected component paths.
  • Adds a package news fragment explaining the user-facing correction.

Reviews (1) · Last reviewed commit: "fix(components): drop dead datadisplay l..."

@codspeed-hq

codspeed-hq Bot commented Sep 12, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 40 untouched benchmarks
⏩ 8 skipped benchmarks1


Comparing benedikt-bartscher:fix-datadisplay-stale-lazy-exports (6e7ac08) with main (9165dc6)

Open in CodSpeed

Footnotes

  1. 8 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant