DrizzleORM v0.31.1 release
Jun 4, 2024
New Features
Live Queries 🎉
For a full explanation about Drizzle + Expo welcome to discussions
As of v0.31.1
Drizzle ORM now has native support for Expo SQLite Live Queries!
We’ve implemented a native useLiveQuery
React Hook which observes necessary database changes and automatically re-runs database queries. It works with both SQL-like and Drizzle Queries:
We’ve intentionally not changed the API of ORM itself to stay with conventional React Hook API, so we have useLiveQuery(databaseQuery)
as opposed to db.select().from(users).useLive()
or db.query.users.useFindMany()
We’ve also decided to provide data
, error
and updatedAt
fields as a result of hook for concise explicit error handling following practices of React Query
and Electric SQL