Skip to content

chore(viewer): delete the unused state.py - #558

Closed
omkargaikwad23 wants to merge 1 commit into
chore/status-heading-casefrom
chore/drop-dead-state-module
Closed

chore(viewer): delete the unused state.py#558
omkargaikwad23 wants to merge 1 commit into
chore/status-heading-casefrom
chore/drop-dead-state-module

Conversation

@omkargaikwad23

Copy link
Copy Markdown
Collaborator

Nothing imports it. It is a stale copy of main.py's State: 16 fields
against 30, still carrying eval_summaries, and selected_main_tab defaults
to "List" rather than "Status".

Leaving it is a trap. @me.stateclass registers by class identity, so two
decorated State classes are two different state objects to Mesop. The
first module to import this one instead of main would get its own state
with its own defaults, silently, with no error to trace.


Stack created with GitHub Stacks CLIGive Feedback 💬

Nothing imports it. It is a stale copy of main.py's State: 16 fields
against 30, still carrying eval_summaries, and selected_main_tab defaults
to "List" rather than "Status".

Leaving it is a trap. @me.stateclass registers by class identity, so two
decorated State classes are two different state objects to Mesop. The
first module to import this one instead of main would get its own state
with its own defaults, silently, with no error to trace.
@omkargaikwad23

Copy link
Copy Markdown
Collaborator Author

Folded into #560 along with the other pure-cleanup changes, to keep the stack to one cleanup layer. Same diff, no content lost.

@omkargaikwad23
omkargaikwad23 deleted the chore/drop-dead-state-module branch August 9, 2026 18:47
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