feat: connected field in context
This commit is contained in:
@ -3,11 +3,13 @@ import { createContext, useContext } from "react";
|
||||
|
||||
interface DbContextValues {
|
||||
db: IDBPDatabase | null;
|
||||
connected: boolean;
|
||||
setDb: (db: IDBPDatabase) => void;
|
||||
}
|
||||
|
||||
export const DbContext = createContext<DbContextValues>({
|
||||
db: null,
|
||||
connected: false,
|
||||
setDb: () => {},
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user