Release Notes
is_none()
and is_not_none()
operations.
If you were getting some of those pesky lint errors because you were doing some_var == None
, you can do some_var.is_none()
instead.
- add is none by @adhami3310 in #5136
Call event handlers with keyword arguments
Although pyright will be mad at you.
import reflex as rx
class State(rx.State):
"""The app state."""
field: int = 0
@rx.event
def change_field(self, new_value: int):
"""Change the state field."""
self.field = new_value
def index() -> rx.Component:
return rx.button(
"Click me!",
State.field,
on_click=State.change_field(new_value=2),
)
app = rx.App()
app.add_page(index)
- Allow calling event handlers with keyword arguments by @adhami3310 in #5124
NextJS upgrade (15.3.0)
This includes faster builds if you enable the environment variable REFLEX_USE_TURBOPACK
.
- nextjs 15.3 by @adhami3310 in #5125
Bugfixes
- i hate order of precedence by @adhami3310 in #5134
- Read environment secrets in state at import time [ENG-5426] [ENG-5455] by @adhami3310 in #5120
- make event statically type-able by @adhami3310 in #5135
- add str to callback for call_function by @adhami3310 in #5139
Chores
- bump to 0.7.8dev by @adhami3310 in #5129
- update supported version in security by @adhami3310 in #5128
- enable UP ruff rule by @adhami3310 in #5137
Full Changelog: v0.7.7...v0.7.8