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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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
2024-12-17 10:15 PST: 0.6.7 released
Release Notes
Deprecations
app.add_custom_404_pageis deprecated -- useapp.add_page(..., route="/404")instead.externalprop ofrx.redirectis renamed tois_externalfor consistency.is_externalprop inrx.redirectandrx.linkby @ElijahAhianyo in Unifyis_externalprop inrx.redirectandrx.link#4389New Features
async_db_urlandrx.asessionBuiltin support for async database operations using sqlmodel. Proper usage requires the following:
greenletfor sqlalchemy to use async operations.ASYNC_DB_URLin 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
datetimevalues[Wrapping React] new
depsandpositionfields inVarDataThis 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.sessionwas used, it was creating a new pool and not reusing connections.Linting
Performance
Miscellaneous
set_log_levelfoot gun by @masenf in Avoidset_log_levelfoot gun #4422Do not mark unchanged backend var deps as dirty by @benedikt-bartscher in Do not mark unchanged backend var deps as dirty #4494rx.linkhref to#sounderlineprop works by @ElijahAhianyo in [ENG-4135]Defaultrx.linkhref to#sounderlineprop works #4509Bug Fixes
rx.inputandrx.el.inputby @ElijahAhianyo in [ENG-4153]Use empty string for None values inrx.inputandrx.el.input#4521Documentation
Version Bumps
Other Changes
macos-latestby @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