force a prefecth

This commit is contained in:
Daniel Lugo 2020-07-30 10:11:38 -04:00
parent 2573a2aaf9
commit 7df73ca49e

View file

@ -110,12 +110,22 @@ const getWallPage = async (page, publicKey) => {
}
return new Promise(res => {
// forces data fetch
user
.get(Key.WALL)
.get(Key.PAGES)
.get(actualPageIdx.toString())
// @ts-ignore
.load(res)
.load(() => {})
process.nextTick(() => {
user
.get(Key.WALL)
.get(Key.PAGES)
.get(actualPageIdx.toString())
// @ts-ignore
.load(res)
})
})
},
maybePage => {