-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
docs: combine nuxt-composition-api and nuxt-typed-vue #113
Comments
Yes, good idea. I'll add some composables to this package. Any preferences on the way you would like to use it? |
Hi, yeah, it would be interesting how you would use (memory) state management in combination with for example graphql to read/write data. For example using Kind of this here (rooms - state) and here (rooms - graphql) |
Any updates? |
With the next release of import { wrapProperty } from '@nuxtjs/composition-api'
export const useAccessor = wrapProperty('$accessor', false)
// You can now get a fully typed accessor within `setup()`
export default defineComponent({
setup() {
const accessor = useAccessor()
// You can now access a fully typed store accessor in your component
},
}) |
@danielroe In how far is this different from const { $accessor } = useContext()
const authenticatedUser = computed(() => $accessor.authenticatedUser )
return {
authenticatedUser
} Without the computed, resetting |
📚 Is your documentation request related to a problem? Please describe.
Hi does nuxt-typed-vuex and nuxt-composition-api work together out of the box.
Do you have any example repo where these two are used together?
Thanks in advance!
The text was updated successfully, but these errors were encountered: