force a prefecth
This commit is contained in:
parent
2573a2aaf9
commit
7df73ca49e
1 changed files with 11 additions and 1 deletions
|
|
@ -110,12 +110,22 @@ const getWallPage = async (page, publicKey) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
return new Promise(res => {
|
return new Promise(res => {
|
||||||
|
// forces data fetch
|
||||||
user
|
user
|
||||||
.get(Key.WALL)
|
.get(Key.WALL)
|
||||||
.get(Key.PAGES)
|
.get(Key.PAGES)
|
||||||
.get(actualPageIdx.toString())
|
.get(actualPageIdx.toString())
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
.load(res)
|
.load(() => {})
|
||||||
|
|
||||||
|
process.nextTick(() => {
|
||||||
|
user
|
||||||
|
.get(Key.WALL)
|
||||||
|
.get(Key.PAGES)
|
||||||
|
.get(actualPageIdx.toString())
|
||||||
|
// @ts-ignore
|
||||||
|
.load(res)
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
maybePage => {
|
maybePage => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue