github reflex-dev/reflex v0.8.14

17 hours ago

Release Notes

Revert ColorVar having .color .alpha .shade

ColorVar being a non primitive string (new String) has proven more problematic than it is useful.

Add --single-port option to reflex run --env prod

Since the app is compiled, there is no need for using a node server to run the frontend and have two ports. You can simply use reflex run --env prod --single-port to host the frontend and backend on the same port.

It's still recommended to serve your frontend on a CDN if possible. Although if you're going for really simple deployments, one port will suffice!

Treat on_drop=State.handle_upload, as on_drop=State.handle_upload(rx.upload_files(upload_id))

the following:

rx.upload(
    id="upload",
    on_drop =State.on_upload,
)

would be converted to

rx.upload(
    id="upload",
    on_drop =State.on_upload(rx.upload_files("upload")),
)

Add primitive radix dialog

It's unstyled, but it makes it easier to use with tailwind and such if you aren't interested in radix themes.

def dialog():
    return rx.radix.primitives.dialog.root(
        rx.radix.primitives.dialog.trigger(...),
        rx.radix.primitives.dialog.portal(
            rx.radix.primitives.dialog.overlay(...),
            rx.radix.primitives.dialog.content(
                rx.radix.primitives.dialog.title(...),
                rx.radix.primitives.dialog.description(...),
                ...,
                rx.radix.primitives.dialog.close(...)
            )
        )
    )

The interface looks almost identical to rx.dialog.

Bugfixes

Chores

Full Changelog: v0.8.13...v0.8.14

Don't miss a new reflex release

NewReleases is sending notifications on new releases.