Skip to content

v0.7.8

Latest
Compare
Choose a tag to compare
@adhami3310 adhami3310 released this 21 Apr 19:10

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.

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)

NextJS upgrade (15.3.0)

This includes faster builds if you enable the environment variable REFLEX_USE_TURBOPACK.

Bugfixes

Chores

Full Changelog: v0.7.7...v0.7.8