refactor: inject masto instance via nuxt app (#134)
This commit is contained in:
		
							parent
							
								
									5c60497421
								
							
						
					
					
						commit
						39b005899e
					
				
					 26 changed files with 67 additions and 48 deletions
				
			
		| 
						 | 
				
			
			@ -3,7 +3,7 @@ const params = useRoute().params
 | 
			
		|||
const accountName = $computed(() => params.account as string)
 | 
			
		||||
 | 
			
		||||
const account = await fetchAccountByName(accountName)
 | 
			
		||||
const paginator = account ? masto.accounts.getFollowersIterable(account.id, {}) : null
 | 
			
		||||
const paginator = account ? useMasto().accounts.getFollowersIterable(account.id, {}) : null
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<template>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue