mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 12:39:17 +00:00
fix error on first load
This commit is contained in:
parent
c615d73fbf
commit
b4b6e11907
@ -31,7 +31,7 @@ export function useChannelContext() {
|
||||
update.summary = channel?.data?.channelSummary;
|
||||
update.detailRevision = channel?.data?.detailRevision;
|
||||
update.topicRevision = channel?.data?.topicRevision;
|
||||
channels.current.set(channelId, channel);
|
||||
channels.current.set(channelId, update);
|
||||
}
|
||||
const setChannelDetails = (channelId, detail, revision) => {
|
||||
let channel = channels.current.get(channelId);
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { useEffect, useState, useRef, useContext } from 'react';
|
||||
import SQLite from "react-native-sqlite-storage";
|
||||
|
||||
const DATABAG_DB = 'databag_v027.db';
|
||||
const DATABAG_DB = 'databag_v033.db';
|
||||
|
||||
export function useStoreContext() {
|
||||
const [state, setState] = useState({});
|
||||
|
Loading…
Reference in New Issue
Block a user