Replies: 1 comment
-
0.6.4 is released! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Please report any problems you encounter in this discussion thread or as separate issues on reflex-dev/reflex.
pip install 'reflex~=0.6.4a'
Schedule
2024-10-25 09:30 PDT: 0.6.4a1 pre-release published for testing
2024-10-28 17:10 PDT: 0.6.4a2 pre-release published
2024-10-29 13:09 PDT: 0.6.4a3 pre-release published
2024-10-29: Planned Public release of 0.6.4
Release Notes
Changes in 0.6.4a3
Changes in 0.6.4a2
New Features
Make Var System Expandable
A new dispatch mechanism for converting python values into Var and LiteralVar subclasses. This allows component authors and downstream applications to better support custom frontend operations on Python values converted to Javascript values
See Example
This example allows for near drop-in support for working with SQLAlchemy
DeclarativeBase
models and will likely be included in a future release:max-requests
support to gunicorn (fixed memory leak)This is a new configurable option in the rx.config but also now has default values.
gunicorn_max_requests
- ( gunicorn / uvicorn )max requests per workerDefaults value -
100
gunicorn_max_requests_jitter
- (gunicorn only) variance in the max request limit. To prevent all workers restarting at same timeDefaults value -
25
What is
max_requests
?max_requests
is a the maximum number of requests a worker can serve before the manager will kill the worker and restart.Why is this needed?
gunicorn workers don't release memory after a request. This can cause for a workers to hold on to more and more memory over time. Setting this flag means that after serving N requests the worker is killed, thus releasing the memory, and a new worker is spun up.
How to configure
Experimental Shiki Codeblock
dotenv
support addedTo use this feature, you must install
python-dotenv
separately from reflex.New
rx.dynamic
decoratorUnlike normal UI functions, this decorator allows UI code to directly access State instance values, Python-only APIs, and typical
for
andif
statements.See Example
We can implement a simple Reflex fiddle, that evaluates component strings into UI components and render them. This was previously difficult, as all UI had to compile into react code in the
.web
folder. This works by dynamically compiling a JavaScript module using in-window react.Improvements
Better Type Hinting for Built in Components
Other Improvements
ComputedVar.__init__
gets bad kwargs by @masenf in Raise TypeError whenComputedVar.__init__
gets bad kwargs #4199Bug Fixes
Version Bumps
Other Changes
Full Changelog: v0.6.3.post1...release/reflex-0.6.4
Beta Was this translation helpful? Give feedback.
All reactions