You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Builtin support for async database operations using sqlmodel. Proper usage requires the following:
Install greenlet for sqlalchemy to use async operations.
Install an appropriate async-capable database driver (aiosqlite, pyscopg)
Set ASYNC_DB_URL in the environment that references the async db driver. This should point to the same database as specified in DB_URL, which should still be set for handling alembic migrations and for use in computed vars, etc.
Use async with rx.asession() as asession -- await most operations on the asession.
Async DB operations are preferred in event handlers to avoid blocking other users on the server.
[Wrapping React] new deps and position fields in VarData
This allows for customization and control of where hooks are rendered relative to other hooks and memoized event handlers. Deps allows for specification of vars that memoized event handlers depend on.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Please report any problems you encounter in this discussion thread or as separate issues on reflex-dev/reflex.
pip install 'reflex~=0.6.7a'
Schedule
2024-12-13 16:20 PST: 0.6.7a1 pre-release published for testing
2024-12-16: Planned Public release of 0.6.7
Release Notes
Deprecations
app.add_custom_404_page
is deprecated -- useapp.add_page(..., route="/404")
instead.external
prop ofrx.redirect
is renamed tois_external
for consistency.is_external
prop inrx.redirect
andrx.link
by @ElijahAhianyo in Unifyis_external
prop inrx.redirect
andrx.link
#4389New Features
async_db_url
andrx.asession
Builtin support for async database operations using sqlmodel. Proper usage requires the following:
greenlet
for sqlalchemy to use async operations.ASYNC_DB_URL
in the environment that references the async db driver. This should point to the same database as specified inDB_URL
, which should still be set for handling alembic migrations and for use in computed vars, etc.async with rx.asession() as asession
-- await most operations on the asession.Async DB operations are preferred in event handlers to avoid blocking other users on the server.
Var Operations for
datetime
values[Wrapping React] new
deps
andposition
fields inVarData
This allows for customization and control of where hooks are rendered relative to other hooks and memoized event handlers. Deps allows for specification of vars that memoized event handlers depend on.
Improvements
More Efficient Database Connection Pooling
Each time
rx.session
was used, it was creating a new pool and not reusing connections.Linting
Performance
Miscellaneous
set_log_level
foot gun by @masenf in Avoidset_log_level
foot gun #4422rx.link
href to#
sounderline
prop works by @ElijahAhianyo in [ENG-4135]Defaultrx.link
href to#
sounderline
prop works #4509Bug Fixes
rx.input
andrx.el.input
by @ElijahAhianyo in [ENG-4153]Use empty string for None values inrx.input
andrx.el.input
#4521Documentation
Version Bumps
Other Changes
macos-latest
by @masenf in bump CI runners tomacos-latest
#4526New Contributors
Full Changelog: v0.6.6.post3...release/reflex-0.6.7
Beta Was this translation helpful? Give feedback.
All reactions