Release Notes
Disable stateless app detection
If you have a stateless app, now you need to explicitly set rx.App(enable_state=False)
for it to be truly stateless.
- disable stateful app detection by @adhami3310 in #5583
reflex db status
A helpful command to visualize your migrations!
Add rx.el.figure
I'm not sure why it was missing, but better late than never. https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/figure
- Add missing rx.el.figure HTML element by @devin-ai-integration[bot] in #5575
WindowEventListener
You can use rx.window_event_listener
to add event handlers to the Window instance. For example:
rx.window_event_listener(on_key_down=rx.console_log)
would log key presses on the whole window. It also supports: on_resize
, on_scroll
, on_focus
, on_blur
, on_visibility_change
, on_before_unload
, on_key_down
, on_popstate
, and on_storage
.
Default event action flags in @rx.event
class State(rx.State):
@event(throttle=500, stop_propagation=True)
def handle_with_defaults(self):
pass
It supports stop_propagation
, prevent_default
, throttle
, debounce
, and temporal
.
- add event_action flags to rx.event decorator by @Lendemor in #5574
- fix docstring by @Lendemor in #5592
Increase number of default workers in production
You can change the number of workers in production by setting the GRANIAN_WORKERS
. If you don't, and you are using Redis, we set a higher value depending on the number of cores in your CPU.
- increase number of workers from the default one by @adhami3310 in #5586
Add useful information to frontend exceptions
Previously they only had the stack, which was not very helpful. Now they include the type and the message.
- add name and message to frontendend exception handler by @adhami3310 in #5585
Bugfixes
- ENG-6695: Do not allow call_script EventSpec to accept callback after being called by @masenf in #5571
- fix attribute check for SQLAlchemy labeled column properties by @benedikt-bartscher in #5567
- add message to why port is skipped by @adhami3310 in #5584
- check input_type is a str before checking its type by @adhami3310 in #5587
- only delete init if in cwd by @adhami3310 in #5601
Chores
- bump to 083 for dev by @adhami3310 in #5572
- modify the contributing guide a tad bit to use uv run python -m reflex.utils.pyi_generator by @adhami3310 in #5576
- add uv required version by @adhami3310 in #5595
- fix spelling mistakes by @tartansandal in #5606
New Contributors
- @tartansandal made their first contribution in #5606
Full Changelog: v0.8.2...v0.8.3