refactor: add onMastoInit
This commit is contained in:
parent
6092b27da6
commit
6729666170
5 changed files with 15 additions and 22 deletions
|
@ -86,7 +86,7 @@ export function usePaginator<T>(
|
|||
}, 1000)
|
||||
|
||||
if (!isMastoInitialised.value) {
|
||||
watchOnce(isMastoInitialised, () => {
|
||||
onMastoInit(() => {
|
||||
state.value = 'idle'
|
||||
loadNext()
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue