mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 20:49:16 +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.summary = channel?.data?.channelSummary;
|
||||||
update.detailRevision = channel?.data?.detailRevision;
|
update.detailRevision = channel?.data?.detailRevision;
|
||||||
update.topicRevision = channel?.data?.topicRevision;
|
update.topicRevision = channel?.data?.topicRevision;
|
||||||
channels.current.set(channelId, channel);
|
channels.current.set(channelId, update);
|
||||||
}
|
}
|
||||||
const setChannelDetails = (channelId, detail, revision) => {
|
const setChannelDetails = (channelId, detail, revision) => {
|
||||||
let channel = channels.current.get(channelId);
|
let channel = channels.current.get(channelId);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { useEffect, useState, useRef, useContext } from 'react';
|
import { useEffect, useState, useRef, useContext } from 'react';
|
||||||
import SQLite from "react-native-sqlite-storage";
|
import SQLite from "react-native-sqlite-storage";
|
||||||
|
|
||||||
const DATABAG_DB = 'databag_v027.db';
|
const DATABAG_DB = 'databag_v033.db';
|
||||||
|
|
||||||
export function useStoreContext() {
|
export function useStoreContext() {
|
||||||
const [state, setState] = useState({});
|
const [state, setState] = useState({});
|
||||||
|
Loading…
Reference in New Issue
Block a user