Replies: 2 comments
-
So far, my app runs great on this new release. All I had to do was add a couple of missing types which was easy now that they are clearly identified. You may want to consider removing the preamble (basically the full stack that winds its way through reflex core stuff), but at least the the important info that identifies the missing types is in the last few lines if you look carefully. To see what I mean just check out the stack I attached and notice that this:
is a little difficut to see and it's not right beside:
Ideally those should be the only things shown and all the other stuff would be suppressed. |
Beta Was this translation helpful? Give feedback.
-
I cannot get past the |
Beta Was this translation helpful? Give feedback.
-
Please report any problems you encounter in this discussion thread or as separate issues on reflex-dev/reflex.
pip install 'reflex~=0.7.0a'
This release includes breaking changes and removal of deprecated features
Schedule
2025-02-03 13:00 PST: 0.7.0a1 pre-release published for testing
2025-02-05 12:15 PST: 0.7.0a2 published
2025-02-05 16:20 PST: 0.7.0a3 published
2025-02-06: Planned Public release of 0.7.0
Release Notes
Changes in 0.7.0a3
Changes in 0.7.0a2
Breaking Changes
Python 3.9 support is no longer supported.
Computed Vars are now
cache=True
by defaultExplicitly set
cache=False
on Computed Vars that should be updated after everyevent, which was the previous default behavior.
The dependency tracking analysis for Computed Vars has been improved to support
async Computed Vars, so there is a possibility for unanticipated behavior change
around tracking dependencies. Please report any bugs encountered in this area.
Previously "CallableVar" shims need to be explicitly called
rx.upload_file
->rx.upload_file()
rx.selected_files
->rx.selected_files()
rx.clear_selected_files
->rx.clear_selected_files()
rx.set_color_mode
->rx.set_color_mode()
Deprecation Removals
rx.App
fields for internal use now have a_
prefixNew Features
reflex rename
A new command to rename an app.
reflex rename
- B by @ElijahAhianyo in [ENG-1796]reflex rename
- B #4668rx.var
now supportsasync
functionsAn
rx.var
computed var can now wrap an async function, which can accessarbitrary state via
get_state
and var values viaget_var_value
.Dependency tracking across states is supported, but there may be edge cases in
the new implementation that prevent depedencies from being automatically
identified. You can pass explicit dependencies to the
deps
argument, and canadd dependencies at runtime via
cls.computed_vars[var_name].add_dependency
.For best results, pass a globally imported state class to
get_state
and assignthe return value to a local variable in the function.
"Built with Reflex" badge
To raise awareness of Reflex, a sticky "Built with Reflex" badge is added to the
lower right corner of each page.
For subscribers of Reflex Cloud, this badge can be disabled by setting
show_built_with_reflex=False
inrxconfig.py
orSHOW_BUILT_WITH_REFLEX=0
inthe environment.
For more information see: https://reflex.dev/docs/hosting/reflex-branding/
Improvements
Support For Dynamic Icon name
Previously the recommendation was to use
rx.match
to map icons, because theicon name itself could not be a Var.
With
rx.dynamic_icon
, the name can now be a Var, but performance may beaffected by dynamic loading.
Support for Specifying Custom App Module
A new config knob is added to
rxconfig.py
, to load the app from a module other than the default.The app module should be importable by name with the current
PYTHONPATH
/sys.path
, and contain anapp
attribute.Display Warning for Frontend/Backend Version Mismatch
When the frontend and backend versions do not match, a warning is displayed in the console.
Typing
Recharts
Avoid Leaked Websocket connections
Miscellaneous
range
passed to rx.Var.create by @masenf in Handle pythonrange
passed to rx.Var.create #4716Bug Fixes
Version Bumps
Linting / Code Quality
Other Changes
New Contributors
Full Changelog: v0.6.8...release/reflex-0.7.0
Beta Was this translation helpful? Give feedback.
All reactions