Category context is not provided. #58
-
Hello, currently i try the shopware/frontends with Nuxt 3. First of all it's really amazing. Thanks for the hard work. I try the following example from the docs: <template>
<div>
<div v-for="product in getElements" :key="product.id">
{{ product.name }}
</div>
</div>
</template>
<script setup lang="ts">
const { refreshSessionContext } = useSessionContext();
onMounted(() => {
refreshSessionContext();
});
const { search, getElements } = useListing({
listingType: "categoryListing",
categoryId: "dfd52ab937f840fd87e9d24ebf6bd245"
});
</script> I got always the following error: How i got the category context? Thanks for your help :) |
Beta Was this translation helpful? Give feedback.
Answered by
niklaswolf
Mar 4, 2023
Replies: 1 comment 5 replies
-
That's odd because looking at the composable code, if there is no context provided it should use the categoryId provided in the params... |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
maximilian-schwarz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That's odd because looking at the composable code, if there is no context provided it should use the categoryId provided in the params...
Do you use the latest version of the composables package?