-
-
Notifications
You must be signed in to change notification settings - Fork 328
The pyscript_component has its initial kwarg set to "" by default, but this case fails
#1335
Answered
by
Archmonger
shawncrawley
asked this question in
Problem
-
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 = "",
Beta Was this translation helpful? Give feedback.
All reactions
Answered by
Archmonger
Feb 11, 2026
Fixed in #1336
Replies: 1 comment 1 reply
-
Reproduce on reactpy-2.0.0b9 with:
from reactpy.utils import string_to_reactpy string_to_reactpy("")
Beta Was this translation helpful? Give feedback.
All reactions
1 reply
-
Fixed in #1336
Beta Was this translation helpful? Give feedback.
All reactions
Answer selected by
Archmonger
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment