powersync/vue package is a Vue-specific wrapper for PowerSync. It provides Vue composables that are designed to support reactivity, and can be used to automatically re-render components when query results update or to access PowerSync connectivity status changes.
npm: @powersync/vue
-
useQuery: This allows you to access the results of a watched query. The response includesisLoading,isFetchinganderrorproperties. -
useStatus: Access the PowerSync connectivity status. This can be used to update the UI based on whether the client is connected or not.
For advanced watch query features like incremental updates and differential results for Vue Hooks, see Live Queries / Watch Queries.