-
Notifications
You must be signed in to change notification settings - Fork 22
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
Migrate from feathers-vuex #99
Comments
There's no need to do the manual assigning dance <script setup lang="ts">
import { defineProps, onMounted } from 'vue'
const User = useUserModel() // auto-imported in Nuxt and Vite projects
// an object or TS interface would be better, but I don't know your schema
const props = defineProps(['pagination'])
// users will automatically populate with data once the query returns.
const { data: users } = User.useFind({ query: { ...props.pagination } })
</script> |
thanks marshallswain |
@devops724 you'll want to take a look at everything available to you inside of the object returned from // lots of utils available inside of "useFindData"
const useFindData = userStore.useFind({ query: props.pagination })
const { data: users } = useFindData |
Here's the list of what's available: https://github.com/marshallswain/feathers-pinia/blob/v1-use-store/src/use-find.ts#L306-L348 You'll need the pre-release docs: https://v1.feathers-pinia.pages.dev/guide/use-find.html. |
Since |
Hi There
I have a project on vue2 feathers-vuex code
want to migrate it to vue3 and feathers-pinia
I followed guide
but can't find a way to implement it on feathers-pinia
is there any guide to help me in this case?
also this line
...mapState("groups", { areGroupsLoading: "isFindPending" }),
The text was updated successfully, but these errors were encountered: