Elmar

Expo Live Query

Aug 12, 2024

The useLiveQuery hook extends the @tanstack/query useQuery to enable real-time updates from an Expo SQLite database, keeping your UI synced with any data changes

      import {  } from "./use-live-query";
import {  } from "./db";

const  = () => {
  const { ,  } = ({
    : ...(),
    : ["messages"],
  });

  //etc...
};

const  = (: { : number }) => {
  const { ,  } = ({
    : ...({
      : (, {  }) => (., .),
    }),
    : ["message", .],
  });

  //even more...
};