Skip to content

clean up random fields that aren't marked correctly as not javascript fields#5484

Merged
adhami3310 merged 5 commits into
mainfrom
treat-all-is_javascript-that-are-not-events-as-vars
Jun 24, 2025
Merged

clean up random fields that aren't marked correctly as not javascript fields#5484
adhami3310 merged 5 commits into
mainfrom
treat-all-is_javascript-that-are-not-events-as-vars

Conversation

@adhami3310
Copy link
Copy Markdown
Member

this is a bit sus i will be looking at the tests, fixes #5427

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Modified the component system's JavaScript field detection in reflex/components/component.py to rely on is_javascript flags instead of Var type checking, addressing issue #5427 regarding component import issues.

  • Changed core component field detection logic to use explicit is_javascript flags rather than Var type checks, potentially impacting how JavaScript-compatible props are determined

1 file reviewed, no comments
Edit PR Review Bot Settings | Greptile

@adhami3310
Copy link
Copy Markdown
Member Author

no longer fixes #5427 hehe

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Jun 21, 2025

CodSpeed Performance Report

Merging #5484 will not alter performance

Comparing treat-all-is_javascript-that-are-not-events-as-vars (0d353da) with main (c78c33a)

Summary

✅ 8 untouched benchmarks

Comment on lines -31 to -41
# The description of character encoding.
char_set: str | None = None

# The value of meta.
content: str | None = None

# The name of metadata.
name: str | None = None

# The type of metadata value.
property: str | None = None
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we removing these?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they are inherited

@adhami3310 adhami3310 changed the title treat all is_javascript that are not events as vars clean up random fields that aren't marked correctly as not javascript fields Jun 24, 2025
@adhami3310 adhami3310 merged commit 7d43dee into main Jun 24, 2025
41 checks passed
@adhami3310 adhami3310 deleted the treat-all-is_javascript-that-are-not-events-as-vars branch June 24, 2025 19:12
masenf pushed a commit that referenced this pull request Jun 26, 2025
… fields (#5484)

* treat all is_javascript that are not events as vars

* fix markdown element

* clean up some stuff

* pyi generate
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.

Some components are missing / not imported in compiled js files

2 participants