Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The pyscript_component has its initial kwarg set to "" by default, but this case fails #1335

Discussion options

The actual root of this issue is caused by the underlying call to reactpy.utils.string_to_reactpy, which will fail if called with an empty string.
This was discovered in the context of refactoring reactpy-django to work with the latest reactpy core pre-release. The reactpy-django package had its own implementation of pyscript_component, but in switching that one out for the one officially provided by reactpy core this issue was revealed.

See the code here:

initial: str | VdomDict | Component = "",
You must be logged in to vote

Replies: 1 comment 1 reply

Comment options

Reproduce on reactpy-2.0.0b9 with:

from reactpy.utils import string_to_reactpy
string_to_reactpy("")
You must be logged in to vote
1 reply
Comment options

Fixed in #1336

Answer selected by Archmonger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /