Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for Nuxt 3 @pinia-orm/axios integration. #1804

Open
1 of 2 tasks
georgyKurian opened this issue Apr 25, 2024 · 1 comment
Open
1 of 2 tasks

Documentation for Nuxt 3 @pinia-orm/axios integration. #1804

georgyKurian opened this issue Apr 25, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation duplicate This issue or pull request already exists

Comments

@georgyKurian
Copy link

Describe the feature

I was trying to use pinia-orm axios plugin with Nuxt3 project. I couldn't find any documentation or examples on how to integrate in Nuxt 3 projects. I tried creating using below plugin code, but it didnt work for me.

import { createORM } from 'pinia-orm';
import { setActivePinia } from 'pinia';
import { defineNuxtPlugin } from '#app';

import { piniaOrmPluginAxios } from '@pinia-orm/axios';

export default defineNuxtPlugin((nuxtApp) => {
  const piniaOrm = createORM();
  piniaOrm().use(piniaOrmPluginAxios);
  nuxtApp.$pinia.use(piniaOrm);
  setActivePinia(nuxtApp.$pinia);
});

Having a documentation or an example for this would be good.

Additional information

  • Would you be willing to help implement this feature?

Final checks

@CodeDredd CodeDredd added documentation Improvements or additions to documentation duplicate This issue or pull request already exists and removed pending triage labels May 6, 2024
@maarten-mald-digital
Copy link

Would also like to know how to implement in Nuxt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants