force a prefecth
This commit is contained in:
parent
2573a2aaf9
commit
7df73ca49e
1 changed files with 11 additions and 1 deletions
|
|
@ -110,6 +110,15 @@ 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(() => {})
|
||||
|
||||
process.nextTick(() => {
|
||||
user
|
||||
.get(Key.WALL)
|
||||
.get(Key.PAGES)
|
||||
|
|
@ -117,6 +126,7 @@ const getWallPage = async (page, publicKey) => {
|
|||
// @ts-ignore
|
||||
.load(res)
|
||||
})
|
||||
})
|
||||
},
|
||||
maybePage => {
|
||||
if (typeof maybePage !== 'object' || maybePage === null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue