You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please report any problems you encounter in this discussion thread or as separate issues on reflex-dev/reflex.
pip install 'reflex~=0.4.6a'
Schedule
2024-03-29 10:00 PDT: 0.4.6a1 is released for general testing
2024-04-01 11:35 PDT: 0.4.6a2 is published with minor fixes
2024-04-01 12:08 PDT 0.4.6a3 is published with typer re-relaxed
2024-04-01 16:00 PDT: 0.4.6a4 is published, removing add_importsAPI and types-tabulate package
2024-04-01 16:45 PDT: General availability of 0.4.6 (No Joke 😁)
Release Notes
Breaking Changes
Use dill instead of cloudpickle
In reflex-0.4.6, existing states persisted in redis are not compatible. Redis should be cleared and existing states/sessions discarded after upgrading.
New props on rx.el.textarea and rx.text_area allow the field to expand to match content and submit the form when Enter is pressed (shift+enter to create a new line)
[REF-2269] Add add_imports API for component class by @martinxu9 in #2937
The add_imports API allows a component to specify additional imports to include without overriding default import tracking behavior from the specified library and lib_dependencies fields.
[REF-2272] Support declaring EventHandlers directly in component by @martinxu9 in #2952
Props typed as rx.EventHandler can be used to define event triggers without overriding get_event_triggers method. The argument of the type specifies the JS to Python mapping: on_click: rx.EventTrigger[lambda e: [e]].
generate pyi files when building/publishing 3rd party component by @Lendemor in #2945
Third-party components will now have .pyi files generated for them to improve IDE completion, similar to the built in Reflex components.
Updated Lucide Icons
The latest icons available on https://lucide.dev are now usable in Reflex. Some icon names have changed, these will print a deprecation warning pointing to the new name. The old names will be removed in 0.5.0.
Reflex is now compatible with a wider range of dependencies. Notably, it can be used with packages that depend on Pydantic v2 (although the framework itself is still using v1).
Avoid content flicker when using State.is_hydrated
is_hydrated is set to False immediately when a navigation event starts, and is set back to True after all on_load events have executed. This avoids content flickering into view before a loading spinner is displayed when the spinner is conditional on the value of State.is_hydrated.
Additionally, the WiFi off connection error pulser is only displayed when connection errors are detected (before it was displayed whenever the page was not hydrated).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Try out the Prerelease
Please report any problems you encounter in this discussion thread or as separate issues on reflex-dev/reflex.
pip install 'reflex~=0.4.6a'
Schedule
2024-03-29 10:00 PDT: 0.4.6a1 is released for general testing
2024-04-01 11:35 PDT: 0.4.6a2 is published with minor fixes
2024-04-01 12:08 PDT 0.4.6a3 is published with typer re-relaxed
2024-04-01 16:00 PDT: 0.4.6a4 is published, removing
add_imports
API andtypes-tabulate
package2024-04-01 16:45 PDT: General availability of 0.4.6 (No Joke 😁)
Release Notes
Breaking Changes
Use
dill
instead ofcloudpickle
In reflex-0.4.6, existing states persisted in redis are not compatible. Redis should be cleared and existing states/sessions discarded after upgrading.
New Features
reflex component share
CLISimplify sharing of custom 3rd party components to the Reflex Component Gallery.
rx.ComponentState
An easy way to define per-component State.
Automatically Select Next Available Port
When the configured port is not available, automatically select the next sequential port until one is available
Expanding Textarea
New props on
rx.el.textarea
andrx.text_area
allow the field to expand to match content and submit the form when Enter is pressed (shift+enter to create a new line)rx.scroll_to
eventScroll the viewpoint to show a given element by ID.
Improvements
Simplify Component Wrapping API
[REF-2269] Add
add_imports
API for component class by @martinxu9 in #2937The
add_imports
API allows a component to specify additional imports to include without overriding default import tracking behavior from the specifiedlibrary
andlib_dependencies
fields.[REF-2272] Support declaring EventHandlers directly in component by @martinxu9 in #2952
Props typed as
rx.EventHandler
can be used to define event triggers without overridingget_event_triggers
method. The argument of the type specifies the JS to Python mapping:on_click: rx.EventTrigger[lambda e: [e]]
.generate pyi files when building/publishing 3rd party component by @Lendemor in #2945
Third-party components will now have
.pyi
files generated for them to improve IDE completion, similar to the built in Reflex components.Updated Lucide Icons
The latest icons available on https://lucide.dev are now usable in Reflex. Some icon names have changed, these will print a deprecation warning pointing to the new name. The old names will be removed in 0.5.0.
Loosen Requirement Pins
Reflex is now compatible with a wider range of dependencies. Notably, it can be used with packages that depend on Pydantic v2 (although the framework itself is still using v1).
Avoid content flicker when using
State.is_hydrated
is_hydrated
is set to False immediately when a navigation event starts, and is set back to True after all on_load events have executed. This avoids content flickering into view before a loading spinner is displayed when the spinner is conditional on the value ofState.is_hydrated
.Additionally, the WiFi off connection error pulser is only displayed when connection errors are detected (before it was displayed whenever the page was not hydrated).
Miscellaneous
Bug Fixes
rx.color_mode_cond
to work in f-strings by @ElijahAhianyo in [REF-2117]:rx.color_mode_cond
to work in f-strings #2775Other Changes
New Contributors
Full Changelog: v0.4.5...reflex-0.4.6
Beta Was this translation helpful? Give feedback.
All reactions