v0.3.2
版本发布时间: 2023-11-04 08:13:11
reflex-dev/reflex最新发布版本:v0.3.3(2023-11-16 03:29:40)
Thank you to our wonderful users and contributors! :clap: :tada:
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 https://github.com/reflex-dev/reflex/pull/1891
- Do not stop prop is there is no prop to stop by @masenf in https://github.com/reflex-dev/reflex/pull/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.
- Expose gunicorn_worker_class via Config by @masenf in https://github.com/reflex-dev/reflex/pull/2084
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.
- components as props by @Lendemor in https://github.com/reflex-dev/reflex/pull/2124
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.
- Github Codespaces Support 🪐 by @masenf in https://github.com/reflex-dev/reflex/pull/2125
Improvements
Add orientation
prop to rx.stepper
- Add 'orientation' Property to Reflex Stepper Components by @shu-qian in https://github.com/reflex-dev/reflex/pull/2089
Add column resize for data editor
- add column resize for data editor by @Lendemor in https://github.com/reflex-dev/reflex/pull/2099
Doc fixups
- fix: Typo in README.md by @debajoti in https://github.com/reflex-dev/reflex/pull/2069
- fix: Grammatical error & typo in CONTRIBUTING.md by @debajoti in https://github.com/reflex-dev/reflex/pull/2072
- docs: fixed wrapping react link by @Shreyas0410 in https://github.com/reflex-dev/reflex/pull/2097
- Added links for Github issues and contributing.md file by @Sentious in https://github.com/reflex-dev/reflex/pull/2076
- DALL E and API docs by @krishvsoni in https://github.com/reflex-dev/reflex/pull/2082
- Typos fixed in multiple files by @SandeshPyakurel in https://github.com/reflex-dev/reflex/pull/2090
- Fix readme links by @picklelo in https://github.com/reflex-dev/reflex/pull/2118
Template Improvements
- base: expand template content to right edge of screen by @masenf in https://github.com/reflex-dev/reflex/pull/2104
- Use blank template as default by @picklelo in https://github.com/reflex-dev/reflex/pull/2109
- Prompt for template on reflex init by @picklelo in https://github.com/reflex-dev/reflex/pull/2122
Hosting Service CLI
- [REF-1042] Hosting CLI: check the user selected app name by @martinxu9 in https://github.com/reflex-dev/reflex/pull/2102
- Hosting CLI: use http endpoint to return deploy milestones by @martinxu9 in https://github.com/reflex-dev/reflex/pull/2085
Other Improvements
- pyproject.toml: bump typer to 0.9.0 by @masenf in https://github.com/reflex-dev/reflex/pull/2068
- Compatibility with older typer versions by @masenf in https://github.com/reflex-dev/reflex/pull/2117
- cleanup dataeditor js code and hooks by @Lendemor in https://github.com/reflex-dev/reflex/pull/2095
- rx.call_script callback needs to await promises by @masenf in https://github.com/reflex-dev/reflex/pull/2121
Bug Fixes
- fix docker example by @dodeca-6-tope in https://github.com/reflex-dev/reflex/pull/2086
- fix portal when using multiple dataeditor by @Lendemor in https://github.com/reflex-dev/reflex/pull/2094
- make download work for state vars by @Lendemor in https://github.com/reflex-dev/reflex/pull/2092
- Set unique index vars in rx.foreach by @picklelo in https://github.com/reflex-dev/reflex/pull/2126
README Translations
- Added Spanish Readme by @bryan-trz in https://github.com/reflex-dev/reflex/pull/2028
New Contributors
- @debajoti made their first contribution in https://github.com/reflex-dev/reflex/pull/2069
- @dodeca-6-tope made their first contribution in https://github.com/reflex-dev/reflex/pull/2086
- @Shreyas0410 made their first contribution in https://github.com/reflex-dev/reflex/pull/2097
- @Sentious made their first contribution in https://github.com/reflex-dev/reflex/pull/2076
- @krishvsoni made their first contribution in https://github.com/reflex-dev/reflex/pull/2082
- @SandeshPyakurel made their first contribution in https://github.com/reflex-dev/reflex/pull/2090
- @shu-qian made their first contribution in https://github.com/reflex-dev/reflex/pull/2089
- @bryan-trz made their first contribution in https://github.com/reflex-dev/reflex/pull/2028
Full Changelog: https://github.com/reflex-dev/reflex/compare/v0.3.1...v0.3.2