© 2026 Hedgehog Software, LLC
import { defineStore } from 'pinia'; export const usemyStore = defineStore('myStore', () => { const { $api, $rollbar, } = useNuxtApp(); console.log($rollbar); const stuff = ref(null); async function fetchStuff() { try { const response = await $api('/stuff', { method: 'GET', }); stuff.value = response?.providers || null; } catch (err) { $rollbar.error('fetchStuff failed:::', err); console.log('fetchStuff failed:::', err); } } return { fetchStuff, }; });
Join the Discord to continue the conversation
Nuxt Community Chat Server
31,632 Members