Thank you to our wonderful users and contributors! 👏 🎉
New Features
Expose stop_propagation
and prevent_default
on Event Handlers
When an event trigger should not propagate to DOM elements nested below it use .stop_propagation
.
When an event action should override the browser default (like following a link), use .prevent_default
.
Each of these "event actions" will trigger the frontend to call the corresponding method on the DOM event associated with the event trigger. Both actions may be applied to the same event handler.
- Expose DOM event actions on EventHandler, EventSpec, and EventChain (stopPropagation) by @masenf in #1891
- Do not stop prop is there is no prop to stop by @masenf in #2116
Gunicorn Worker Class
The gunicorn_worker_class
may be specified in rxconfig.py
to configure low-level uvicorn settings when running in prod
mode. See example in dicussion #2070.
Components can be passed as props
Components can now accept props with type Var[Component]
, which allows for greater customization of components and greater flexibility when wrapping third-party components.
This only works for static components passed at compile-time. Components cannot be used in a State Var.
Github Codespaces
Creating a codespace from the reflex repo is now supported. Be sure to open the Backend URL in the browser first (or mark the port as Public) to allow the frontend to access the backend via websocket.
Improvements
Add orientation
prop to rx.stepper
Add column resize for data editor
Doc fixups
- fix: Typo in README.md by @debajoti in #2069
- fix: Grammatical error & typo in CONTRIBUTING.md by @debajoti in #2072
- docs: fixed wrapping react link by @Shreyas0410 in #2097
- Added links for Github issues and contributing.md file by @Sentious in #2076
- DALL E and API docs by @krishvsoni in #2082
- Typos fixed in multiple files by @SandeshPyakurel in #2090
- Fix readme links by @picklelo in #2118
Template Improvements
- base: expand template content to right edge of screen by @masenf in #2104
- Use blank template as default by @picklelo in #2109
- Prompt for template on reflex init by @picklelo in #2122
Hosting Service CLI
- [REF-1042] Hosting CLI: check the user selected app name by @martinxu9 in #2102
- Hosting CLI: use http endpoint to return deploy milestones by @martinxu9 in #2085
Other Improvements
- pyproject.toml: bump typer to 0.9.0 by @masenf in #2068
- cleanup dataeditor js code and hooks by @Lendemor in #2095
- rx.call_script callback needs to await promises by @masenf in #2121
Bug Fixes
- fix docker example by @dodeca-6-tope in #2086
- fix portal when using multiple dataeditor by @Lendemor in #2094
- make download work for state vars by @Lendemor in #2092
- Set unique index vars in rx.foreach by @picklelo in #2126
README Translations
- Added Spanish Readme by @bryan-trz in #2028
New Contributors
- @debajoti made their first contribution in #2069
- @dodeca-6-tope made their first contribution in #2086
- @Shreyas0410 made their first contribution in #2097
- @Sentious made their first contribution in #2076
- @krishvsoni made their first contribution in #2082
- @SandeshPyakurel made their first contribution in #2090
- @shu-qian made their first contribution in #2089
- @bryan-trz made their first contribution in #2028
Full Changelog: v0.3.1...v0.3.2